Skip to content

Commit

Permalink
Add retry for tests
Browse files Browse the repository at this point in the history
Signed-off-by: sruti1312 <[email protected]>
  • Loading branch information
sruti1312 committed Apr 6, 2022
1 parent 090598e commit 869bc02
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ plugins {
id 'jacoco'
id 'com.diffplug.spotless' version '5.11.0'
id 'checkstyle'
id 'org.gradle.test-retry' version '1.3.1'
}

spotbugsMain {
Expand Down Expand Up @@ -91,6 +92,12 @@ spotless {
test {
enabled = true
systemProperty 'tests.security.manager', 'false'

retry {
failOnPassedAfterRetry = false
maxRetries = 3
maxFailures = 10
}
}

licenseHeaders.enabled = true
Expand Down

0 comments on commit 869bc02

Please sign in to comment.