Skip to content

Commit

Permalink
Add possibility to configure number of test retries
Browse files Browse the repository at this point in the history
Useful locally to disable retries of failing integration tests via
-Pretries=0.
  • Loading branch information
marcphilipp committed Dec 21, 2020
1 parent 044f71c commit 86d6645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/testing-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tasks.withType<Test>().configureEach {
exceptionFormat = FULL
}
retry {
maxRetries.set(2)
maxRetries.set(providers.gradleProperty("retries").map(String::toInt).orElse(2))
}
systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager")
// Required until ASM officially supports the JDK 14
Expand Down

0 comments on commit 86d6645

Please sign in to comment.