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
