[CORDA-2285]: Enabled jUnit parallel execution. (#4344)

This commit is contained in:
Michele Sollecito 2018-12-03 13:31:17 +00:00 committed by GitHub
parent da6059d29d
commit 5f02425ef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -265,6 +265,14 @@ allprojects {
}
}
subprojects {
tasks.withType(Test) {
if (project.getProperty('test.parallel').toBoolean()) {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
}
}
}
// Check that we are running on a Java 8 JDK. The source/targetCompatibility values above aren't sufficient to
// guarantee this because those are properties checked by the Java plugin, but we're using Kotlin.
//

View File

@ -3,3 +3,4 @@ org.gradle.jvmargs=-XX:+UseG1GC -Xmx1g -Dfile.encoding=UTF-8
org.gradle.caching=true
owasp.failOnError=false
owasp.failBuildOnCVSS=11.0
test.parallel=false