-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Run until test fails (debug flakey/intermittent errors) #5665
Comments
Maybe you can take the great retry plugin and inverse its behaviour? Should not be too much efford i think |
Or open an issue in its repository. Maybe the owner introduces a flag to switch between both modes? |
Thanks @gabbersepp! Created an issue over there, kuceb/cypress-plugin-retries#37 |
There is an example in our recipes that kind of does something similar to this here: https://github.com/cypress-io/cypress-example-recipes/blob/master/test-repeat.js |
I've defined a shell function which re-runs the command given until it fails... until_fail () {
eval "$@"
while [ "$?" -eq "0" ]
do
eval "$@"
done
} Example usage:
|
Please try our 'experimentalRetries’ feature. We’ll be coming out with more around flake detection soon. I’ll close this since we’ve already prioritized this work. |
hi @jennifer-shehane am I right in thinking this feature is locked behind the Team plan, even for running locally? If so, that would be quite disappointing. |
We are using native retry function since 5.0.0 or so without team plan. This is the original issue where the feature was introduced: not sure what are the differences to the new experimental retry feature |
Add a way to keep re-running the test-suite until you run into a failure. When debugging flakey, intermittent failures, it would be nice to just keep retrying the tests until something fails. I don't want to keep pressing re-run manually.
This could be accomplished with
cypress run
and some outside scripting on top of it but I want to do this inside thecypress open
test runner. Usingcypress run
is also tough to get useful info out of when a failure happens but this is being tracked by #448There is a Run all tests button in the UI but it only re-runs the test suite once. I want to keep retrying the test suite until some test fails.
Related issues but mainly around retrying failed tests,
The text was updated successfully, but these errors were encountered: