-
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: Stop Cypress when there are too many failed tests #1599
Comments
We've definitely discussed this and other variants of this internally in terms of improving 'failure workflow'. Thanks for opening this issue! |
Yah, you are sort of "going against the grain" here where you are splitting up things across multiple tests but it's really just a single test, which is an anti pattern. I can understand what you're doing - and regardless I think the You say that it's hard to tell at which point the test failed, but I'm not seeing why. Cypress records screenshots and videos, and you can use Can you go into detail as to your process or why you're finding this challenging? |
Yes, you're right. I should try My test in the screenshot is going through a registration process with several form pages. The test often fails because newly added form fields are not yet handled in Cypress and the website doesn't let Cypress press the "next"-button. In the error message Cypress provides information about the button element, but not the context of the element (e.g. the URL or previous commands), so I can't easily figure out which of the many "next"-buttons I click in the registration process caused the error. I know that I can look it up in the screenshots within the dashboard, but I would like to keep the dashboard for more detailed investigation and make such basic things like checking where the test failed visible within the CI logs. And because Cypress only logs whether an |
@brian-mann I just tested it but Cypress doesn't log
|
@dcastil the docs for |
and just to link the issues; this is very similar to the feature requested in #518 |
Closing as duplicate of #518 |
Current 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:
The text was updated successfully, but these errors were encountered: