Rerun flaky tests 3 times
This can help to reduce time spent on rebuilds caused by flaky tests. Change-Id: I8f7831e470fd8aa065f0b8728f62f39734d05016
This commit is contained in:
parent
8dcb02140d
commit
c6b979444b
1
.bazelrc
1
.bazelrc
|
@ -30,6 +30,7 @@ build:remote17 --tool_java_runtime_version=remotejdk_17
|
||||||
|
|
||||||
test --build_tests_only
|
test --build_tests_only
|
||||||
test --test_output=errors
|
test --test_output=errors
|
||||||
|
test --flaky_test_attempts=3
|
||||||
|
|
||||||
import %workspace%/tools/remote-bazelrc
|
import %workspace%/tools/remote-bazelrc
|
||||||
|
|
||||||
|
|
1
pom.xml
1
pom.xml
|
@ -282,6 +282,7 @@
|
||||||
<forkCount>${test-fork-count}</forkCount>
|
<forkCount>${test-fork-count}</forkCount>
|
||||||
<reuseForks>true</reuseForks>
|
<reuseForks>true</reuseForks>
|
||||||
<argLine>@{argLine}</argLine>
|
<argLine>@{argLine}</argLine>
|
||||||
|
<rerunFailingTestsCount>3</rerunFailingTestsCount>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue