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
+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)
}
}