Build: Setup gradle.test-retry plugin for all test tasks in the project
This commit is contained in:
@@ -528,6 +528,7 @@ allprojects {
|
||||
}
|
||||
|
||||
apply(from = "$rootDir/gradle/cacheRedirector.gradle.kts")
|
||||
apply(from = "$rootDir/gradle/testRetry.gradle.kts")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user