Implement new 'mix' test mode

This mode must be used when one configuration will run several tests
for different JUnit versions.
This commit is contained in:
Ivan Kylchik
2021-10-14 12:32:51 +03:00
parent a2d2ace71a
commit 225b064470
14 changed files with 33 additions and 27 deletions
@@ -60,7 +60,7 @@ if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
}
}
projectTest(parallel = true, jUnit5Enabled = true) {
projectTest(parallel = true, jUnitMode = JUnitMode.JUnit5) {
workingDir = rootDir
jvmArgs!!.removeIf { it.contains("-Xmx") }
maxHeapSize = "3g"
@@ -51,7 +51,7 @@ sourcesJar()
javadocJar()
testsJar()
projectTest(parallel = true, jUnit5Enabled = true) {
projectTest(parallel = true, jUnitMode = JUnitMode.JUnit5) {
workingDir = rootDir
useJUnitPlatform()
}
@@ -75,7 +75,7 @@ sourcesJar()
testsJar()
projectTest(jUnit5Enabled = true) {
projectTest(jUnitMode = JUnitMode.JUnit5) {
useJUnitPlatform()
dependsOn(parcelizeRuntimeForTests)
dependsOn(":dist")