Gradle Junit- How to execute multiple tests per class


(Srikanth) #1

I have 3-4 tests in every test class, but when i run gradle test, it is only running one test per class and then starting other tests once the current tests gets completed.

How can i run multiple tests per class to speed test execution time?

My Gradle(Test Task):

tasks.withType(Test) {
maxParallelForks = 10
forkEvery = 1
testLogging {
events “passed”,“failed”, “standardOut”
}
}

Anything that i am doing wrong?