Skip to content
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

Automatically re-run failed cypress tests for a predefined number of times #2163

Closed
Junaid-Aslam1 opened this issue Jul 17, 2018 · 1 comment
Labels
type: duplicate This issue or pull request already exists

Comments

@Junaid-Aslam1
Copy link

Junaid-Aslam1 commented Jul 17, 2018

Current behavior:

As frontend test automation is a tricky business, there is no way to ensure 100% flakiness free tests. Sometimes even the response from the server can be slighlty slower than expected so a test will fail but re-running the same test without any remedial changes will end in success.

Desired behavior:

Cypress has an option of something like cypress run '-rft 5' (or --repeatFailedTests 5) which will repeat the failed tests 5 times i.e. it will repeat until the tests until the test passes or fails for a maximum 5 times.

In case the test passes when repeating the tests should be considered a success which can be really important when using CI like bamboo

The default value '-rft' should repeat the tests once.

@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label Jul 17, 2018
@jennifer-shehane
Copy link
Member

Hi, you'll be happy to hear that this is already a requested feature that we have put some discussion into. Thanks for the input! Duplicate of #1313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants