Skip to content

Commit

Permalink
Retry flaky tests
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <[email protected]>
  • Loading branch information
owaiskazi19 committed Jan 24, 2024
1 parent b84e9aa commit 30bf56f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ buildscript {

plugins {
id "de.undercouch.download" version "5.5.0"
id "org.gradle.test-retry" version "1.5.4" apply false
}

apply plugin: 'java'
Expand Down Expand Up @@ -405,6 +406,19 @@ task integTestRemote(type: RestIntegTestTask) {
}
}


// test retry configuration
subprojects {
apply plugin: "org.gradle.test-retry"
tasks.withType(Test).configureEach {
retry {
failOnPassedAfterRetry = false
maxRetries = 3
maxFailures = 10
}
}
}

// Automatically sets up the integration test cluster locally
run {
doFirst {
Expand Down

0 comments on commit 30bf56f

Please sign in to comment.