Skip to content

Instantly share code, notes, and snippets.

@ArturT
Last active February 23, 2023 17:07
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 ArturT/2ed147f1ac57319b8f7157f19641e88f to your computer and use it in GitHub Desktop.
Save ArturT/2ed147f1ac57319b8f7157f19641e88f to your computer and use it in GitHub Desktop.
How to reproduce a flaky test. Run a flaky test until it fails.
# bash
while [ "$?" == 0 ]; do rspec spec/flaky_spec.rb:123; done
# zsh
while rspec spec/flaky_spec.rb:123; do :; done
@ArturT
Copy link
Author

ArturT commented Oct 26, 2020

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