Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Execute tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jun 21, 2024
1 parent c8cea1c commit 781b8a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ apply from: file('gradle/dependencies.gradle')
tasks.withType(Test).configureEach {
useJUnitPlatform()

// https://docs.gradle.org/8.8/userguide/performance.html#execute_tests_in_parallel
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1

if (System.env.CI == 'true') {
testLogging.showStandardStreams = true
minHeapSize "1g"
Expand Down

0 comments on commit 781b8a3

Please sign in to comment.