exitCode 1 == one test failed && exitCode 1 == error #24718
Unanswered
sebamomann
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
the cypress documentation suggests that the exit code of the
cypress run
command reflects the number of failed tests. That's totally fine, unless you only have one failed test. This is because the second paragraph suggests that upon other errors (like a missing spec file) the status code 1 will be returned too. This results in confusion since i need to differenciate between a logical error inside the test (failed assertion etc) and technical failures (like a non existing spec file etc.)Is there any possibility to not use the error code 1 for completely different outcomes?
Beta Was this translation helpful? Give feedback.
All reactions