Thanks for your prompt response.

We are using junit 3.8 unfortunately. We will look at upgrading
version but this patch will work with no upgrades to junit.

On 1/15/10, Stephen Connolly <stephen.alan.conno...@gmail.com> wrote:
> Eh.... Surefire 2.5 (which is in the process of being released)
> supports the parallel execution features of JUnit 4.7+
>
> If that works for you, no patch required
>
> -Stephen
>
> 2010/1/15 Colm O'Donnell <colm.p.odonn...@gmail.com>:
>> Hi,
>>
>> I work for a company that have a large number of junit tests. We have
>> migrated from ant to maven recently but are faced with a serious problem
>> with respect to the time to execute the tests. We used to execute some
>> tests
>> in parallel with ant but it was not great and depended on a lot of manual
>> effort. Currently we have to disable surefire and revert to calling ant to
>> execute the tests.
>>
>> We have attempted to patch surefire to allow for parallel execution of
>> Junit
>> tests. And we are wondering if we could submit a patch for this. It
>> required
>> some small refactorings of the surefire booter classes to create a
>> different
>> implementation of an interface for each type of booting available . e.g.
>> move the content of the method runSuitesInProcess into a class in its own
>> right.
>>
>> It reuses the existing booter functionality to spawn processes and adds
>> another for threaded execution.
>> So there exists a new class available to booter can scan the test dir and
>> find out the number of tests and then divide them up into a configurable
>> chunk size and hands chunks of tests to the implementation for the
>> selected
>> concurrency mode.
>>
>> Would this approach to sure fire be acceptable?
>> And where do I submit our patch?
>>
>>
>> Cheers
>>
>> Colm
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>
>

-- 
Sent from my mobile device

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to