Today I've run into situation where some of the tests started failing randomly. Sometimes, 3 times in a row they could be executed successfully, but then would fail.
In order to collect more statistics I created this test.bat
:
for /L %%i in (1,1,10) do (
gradlew clean test
zip -r0q build%%i build/
)
and ran it as start test.bat