getMaxParallelForks

Returns the maximum number of test processes to start in parallel.

By default, Gradle executes a single test class at a time.

  • A value of 1 means to only execute a single test class in a single test process at a time. This is the default.
  • A value of N means that up to N test processes will be started to execute test classes. This can improve test execution time by running multiple test classes in parallel.
This property cannot exceed the value of max-workers for the current build. Gradle will also limit the number of started test processes across all Test tasks.

Return

The maximum number of forked test processes.