To run JUnit5 tests concurrently in Gradle when testing a single class, you can set the maxParallelForks parameter in the test task configuration.
Here's an example:
test {
useJUnitPlatform()
maxParallelForks = 4
}
This will run up to 4 test classes concurrently, which can significantly reduce the time it takes to run all the tests.
Asked: 2021-08-04 11:00:00 +0000
Seen: 11 times
Last updated: Nov 27 '21