Skip to content

Instantly share code, notes, and snippets.

@62mkv
Created May 5, 2020 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 62mkv/6d6ec1117860e8b7cf8a76fbeef9afa7 to your computer and use it in GitHub Desktop.
Save 62mkv/6d6ec1117860e8b7cf8a76fbeef9afa7 to your computer and use it in GitHub Desktop.
How to catch those flaky tests

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment