1 | initial version |
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.