From 869bc0292387dadcadf2b292acd5fcac2151a1a2 Mon Sep 17 00:00:00 2001 From: sruti1312 Date: Wed, 6 Apr 2022 14:55:57 -0700 Subject: [PATCH] Add retry for tests Signed-off-by: sruti1312 --- build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.gradle b/build.gradle index 86dd785e..79a3d1d5 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { @@ -91,6 +92,12 @@ spotless { test { enabled = true systemProperty 'tests.security.manager', 'false' + + retry { + failOnPassedAfterRetry = false + maxRetries = 3 + maxFailures = 10 + } } licenseHeaders.enabled = true