Skip to content

Commit

Permalink
Tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
DavePearce committed Oct 9, 2024
1 parent 50823bf commit 4c33832
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions gradle/tests.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ tasks.withType(Test).configureEach {
}

tasks.test.configure {
maxParallelForks = Runtime.getRuntime().availableProcessors()
// maxParallelForks = Runtime.getRuntime().availableProcessors()
useJUnitPlatform {
excludeTags("nightly")
excludeTags("replay")
Expand All @@ -126,14 +126,14 @@ tasks.test.configure {
}

tasks.register("fastReplayTests", Test) {
if (System.getenv().containsKey("REPLAY_TESTS_PARALLELISM")) {
systemProperty("junit.jupiter.execution.parallel.enabled", true)
systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")
systemProperty("junit.jupiter.execution.parallel.mode.classes.default", "concurrent")
systemProperty("junit.jupiter.execution.parallel.config.strategy", "fixed")
systemProperty("junit.jupiter.execution.parallel.config.fixed.parallelism",
System.getenv().get("REPLAY_TESTS_PARALLELISM").toInteger())
}
// if (System.getenv().containsKey("REPLAY_TESTS_PARALLELISM")) {
// systemProperty("junit.jupiter.execution.parallel.enabled", true)
// systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")
// systemProperty("junit.jupiter.execution.parallel.mode.classes.default", "concurrent")
// systemProperty("junit.jupiter.execution.parallel.config.strategy", "fixed")
// systemProperty("junit.jupiter.execution.parallel.config.fixed.parallelism",
// System.getenv().get("REPLAY_TESTS_PARALLELISM").toInteger())
// }
useJUnitPlatform {
includeTags("replay")
excludeTags("nightly")
Expand Down

0 comments on commit 4c33832

Please sign in to comment.