uncaught:exception breaks the Gitlab pipeline
See original GitHub issueCurrent behavior
When running locally, I can see the exception being thrown and am informed by Cypress about it, however, the tests continue running.
When running it on the pipeline, the output shown gets cut off, and no information is displayed as to why the pipeline failed.
Here it is stated that only the tests will fail (nothing else is mentioned). https://docs.cypress.io/guides/references/error-messages#Uncaught-exceptions-from-your-application
After I’ve added cy.on('uncaught:exception', () => false);
to my test, the pipeline run fine, but this should have nothing to do with the pipeline passing or not in my oppinion.
Desired behavior
The pipeline should continue running, and the reported failed and passed tests should be displayed correctly so that the debugging information can be useful.
Test code to reproduce
Don’t have it as of this time.
Cypress Version
10.7.0
Node version
16.14.0
Operating System
Ubuntu 20.04.5
Debug Logs
No response
Other
No response
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
Yes, I will try to do so in the following days.
Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen.