I have setup my Cypress tests to run in Azure DevOps. I run the test via CMD command in my yml file and then get the test results. When the tests pass everything is working as expected and the test results show up in the summary. When the a test fails the CMD steps fails with the error ##[error]Bash exited with code '1' and the test results are not populated. Is there a way the bash exit with 0 on failed tests as well?
Asked
Active
Viewed 3,481 times
1 Answers
4
You can ask bash to ignore the error like this
my-test-script || true
See answer Bash ignoring error for a particular command

Mikkel
- 7,693
- 3
- 17
- 31