You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@buildr.apache.org by Pepijn Van Eeckhoudt <pe...@vaneeckhoudt.net> on 2012/02/27 11:09:07 UTC

JMock in java/tests.rb

The JUnit and TestNG support automatically pull in JMock without an 
option to disable this. Any idea why this is done? It seems rather 
arbitrary to pull in one specific testing library.

This is causing problems in my builds because jmock pulls in hamcrest 
1.1 while my unit tests depend on hamcrest 1.2.

Anyone against removing this or at least making it optional?

Pepijn

Re: JMock in java/tests.rb

Posted by Alex Boisvert <al...@gmail.com>.
On Mon, Feb 27, 2012 at 2:09 AM, Pepijn Van Eeckhoudt <
pepijn@vaneeckhoudt.net> wrote:

> The JUnit and TestNG support automatically pull in JMock without an option
> to disable this. Any idea why this is done? It seems rather arbitrary to
> pull in one specific testing library.
>
> This is causing problems in my builds because jmock pulls in hamcrest 1.1
> while my unit tests depend on hamcrest 1.2.
>
> Anyone against removing this or at least making it optional?


The reason was convenience since they are/were often used together.

I'm good with an option to make it optional and/or configure the version
used.

alex