Gradle equivalent for Maven Surefire surefire.forkNumber
问题 I'm migrating a codebase from Maven to Gradle. In our integration test we use FailSafe ability to run the tests in parallel in multiple threads. FailSafe is setting a system property name surefire.forkNumber with the number of the specific fork the current thread runs. Is there equivalent parameter when running JUnit with Gradle? 回答1: The test task in Gradle has the property maxParallelForks to instruct the tests to run in parallel. To pass a property from the command-line to set the value we