Build: Setup gradle.test-retry plugin for all test tasks in the project

This commit is contained in:
Vyacheslav Gerasimov
2019-12-27 17:31:29 +03:00
parent 3d7619421f
commit 3764eeba25
3 changed files with 13 additions and 0 deletions
+1
View File
@@ -528,6 +528,7 @@ allprojects {
}
apply(from = "$rootDir/gradle/cacheRedirector.gradle.kts")
apply(from = "$rootDir/gradle/testRetry.gradle.kts")
}
}
+2
View File
@@ -110,6 +110,8 @@ dependencies {
implementation("org.jetbrains.intellij.deps:asm-all:8.0.1")
implementation("gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:0.5")
implementation("org.gradle:test-retry-gradle-plugin:1.1.9")
}
samWithReceiver {
+10
View File
@@ -0,0 +1,10 @@
apply(plugin = "org.gradle.test-retry")
tasks.withType<Test>().configureEach {
configure<org.gradle.testretry.TestRetryTaskExtension> {
maxRetries.set(3)
maxFailures.set(20)
failOnPassedAfterRetry.set(false)
}
}