Reputation: 15472
I write a parameterized junit test.
Is there any built-in way to make it run in parallel? any @annoation
for example?
If not, and my only way is to write this manually -
how would you manage a thread pool in junit, java?
Upvotes: 9
Views: 6661
Reputation: 24510
The library JUnit Toolbox provides a ParallelParameterized runner. Replace
@RunWith(Parameterized.class)
public class YourTest {
with
@RunWith(ParallelParameterized.class)
public class YourTest {
Upvotes: 18