Cypress: Feature: Run until test fails (debug flakey/intermittent errors)

Created on 12 Nov 2019  路  4Comments  路  Source: cypress-io/cypress

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 the cypress open test runner. Using cypress run is also tough to get useful info out of when a failure happens but this is being tracked by https://github.com/cypress-io/cypress/issues/448

There 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,

proposal 馃挕 feature

Most helpful comment

Thanks @gabbersepp! Created an issue over there, https://github.com/Bkucera/cypress-plugin-retries/issues/37

All 4 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, https://github.com/Bkucera/cypress-plugin-retries/issues/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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brian-mann picture brian-mann  路  3Comments

igorpavlov picture igorpavlov  路  3Comments

tahayk picture tahayk  路  3Comments

carloscheddar picture carloscheddar  路  3Comments

scottcrowe picture scottcrowe  路  3Comments