I have 3 test classes (TestClass1, TestClass2 and TestClass3). TestClass1 has 3 tests. TestClass2 has 3 tests. TestClass3 has 20 tests.
Here is the task which runs tests.
task regressionTests(type: Test, description: ‘Runs regression tests in parallel’) {
useJUnit {
includeCategories ‘org.junit.categories.ParallelTest’
}
maxParallelForks = 10 }
What I could see is that 3 threads spawned (though maxParallelForks = 10) and 3 threads picked one test class each. Within each thread, the tests are getting executed sequentially.
What I would like is execute 10 tests in parallel.