Browse Source

[gradle] Disable parallel tests run for gradle tests

pull/4474/head
Konstantin Tskhovrebov 10 months ago committed by Igor Demin
parent
commit
70aa35bfb5
  1. 9
      gradle-plugins/compose/build.gradle.kts
  2. 4
      gradle-plugins/gradle.properties

9
gradle-plugins/compose/build.gradle.kts

@ -118,6 +118,15 @@ tasks.test {
}
}
if (properties.getOrDefault("dev.junit.parallel", "false") == "true") {
logger.lifecycle("Test task will run in parallel")
tasks.withType(Test::class.java) {
//https://junit.org/junit5/docs/current/user-guide/#writing-tests-parallel-execution-config-properties
systemProperties["junit.jupiter.execution.parallel.enabled"] = true
systemProperties["junit.jupiter.execution.parallel.mode.default"] = "concurrent"
}
}
/**
* Gradle 8.0 removed auto downloading of requested toolchains unless a toolchain repository is configured.
* For now, the only option to enable auto downloading out-of-the-box is to use Foojay Disco resolver,

4
gradle-plugins/gradle.properties

@ -1,8 +1,12 @@
org.gradle.parallel=true
org.gradle.configuration-cache=true
org.gradle.caching=true
org.gradle.daemon=true
kotlin.code.style=official
# CI agents don't have enough resources to support it :(
dev.junit.parallel=false
# Default version of Compose Libraries used by Gradle plugin
compose.version=1.6.0-dev1383
# The latest version of Compose Compiler used by Gradle plugin. Used only in tests/CI.

Loading…
Cancel
Save