]> source.dussan.org Git - sonarqube.git/commitdiff
[build] support optional run of tests in parallel 3122/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 12 Mar 2018 08:41:24 +0000 (09:41 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 13 Mar 2018 08:12:09 +0000 (09:12 +0100)
use -PmaxParallelTests=X (eg, X=4) as command line argument of ./gradlew

build.gradle

index 253113edede2458932962e7ab15f20a73fbb7638..c870a12d062eeb908f6cdb33ee9c493be0467662 100644 (file)
@@ -233,6 +233,8 @@ subprojects {
       exceptionFormat 'full' // log the full stack trace (default is the 1st line of the stack trace)
       events "skipped", "failed" // verbose log for failed and skipped tests (by default the name of the tests are not logged)
     }
+    if (project.hasProperty('maxParallelTests'))
+        maxParallelForks = project.maxParallelTests as int
   }
 
   def protoMainSrc = 'src/main/protobuf'