Skip to content

Commit

Permalink
Execute tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jul 31, 2023
1 parent 3693211 commit 225d786
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gradle/test.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ project.tasks.withType(Test).configureEach {

useJUnitPlatform()

// https://docs.gradle.org/8.0/userguide/performance.html#execute_tests_in_parallel
maxParallelForks = System.getenv("CI") != null ? Runtime.getRuntime().availableProcessors() : Runtime.runtime.availableProcessors().intdiv(2) ?: 1

// disabling Spock checks because Spock for whatever reason seems to consider the Groovy version of the
// Gradle version under test to be processed, when it shouldn't
// jvmArgs("-Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true")
Expand Down

0 comments on commit 225d786

Please sign in to comment.