From: Sébastien Lesaint Date: Mon, 12 Mar 2018 08:41:24 +0000 (+0100) Subject: [build] support optional run of tests in parallel X-Git-Tag: 7.5~1553 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=30aed40665c620052232b5478075efc141928ed2;p=sonarqube.git [build] support optional run of tests in parallel use -PmaxParallelTests=X (eg, X=4) as command line argument of ./gradlew --- diff --git a/build.gradle b/build.gradle index 253113edede..c870a12d062 100644 --- a/build.gradle +++ b/build.gradle @@ -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'