Feature: Stop Cypress when there are too many failed tests
See original GitHub issueCurrent behavior:
Sometimes a feature I work on breaks a lot of tests in the CI build. I have to wait until all tests are finished until I can figure out what happened, which can take very long due to long timeouts.
Desired behavior:
Being able to set a variable in cypress.json to stop the Cypress test execution and fast-forward to uploading the data to the Cypress dashboard when a specific number of test failures is exceeded.
For example in cypress.json:
{
"maxFailedTests": 10
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Test Retries - Cypress Documentation
With test retries, Cypress is able to retry failed tests to help reduce test flakiness and continuous integration (CI) build failures. By doing...
Read more >Cypress: interrupt all tests on first failure - Stack Overflow
We are using semaphore to launch complete e2e tests with Cypress for each PR. But it takes too much time. I'd like to...
Read more >3 Practices to Reduce Flakiness in Cypress Tests - Atomic Spin
and the assertion fails, Cypress will only retry the .find() command, instead of starting from the beginning of the chain and retrying .get()...
Read more >Cypress and Flaky Tests: How to Handle Timeout Errors
Lastly, Cypress also offers a flaky test detection feature on the Cypress Dashboard. If the “test retries” option is enabled, this feature will ......
Read more >Cypress.io — Best practices for maintainable tests - ITNEXT
A test isn't given much thought until it fails. Tests should be written for the failure case. Cypress creates an outline in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’ve definitely discussed this and other variants of this internally in terms of improving ‘failure workflow’. Thanks for opening this issue!
@brian-mann I just tested it but Cypress doesn’t log
cy.log()
s to the console. Is there a way to print a status from within a test? So I have something like this in the console: