-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[CI Failing]: Github Action passing even on test failures #3001
Comments
When ever there is a failure, mocha sets an eventlistener on Possible solutions:
|
swrdfish
added a commit
to swrdfish/nightwatch
that referenced
this issue
Feb 3, 2022
swrdfish
added a commit
to swrdfish/nightwatch
that referenced
this issue
Feb 7, 2022
swrdfish
added a commit
to swrdfish/nightwatch
that referenced
this issue
Feb 8, 2022
8 tasks
swrdfish
added a commit
to swrdfish/nightwatch
that referenced
this issue
Mar 25, 2022
beatfactor
pushed a commit
that referenced
this issue
Mar 25, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
We use 'mocha' for unit tests. Currently, we have a Github action setup and whenever a failure occurs, Mocha exits with a 0 status code, so the GitHub action passes instead of failure.
Reason for failure
Seeing mocha exit with a 0 exit code after failing a test.
Related issues
🐛 mochajs/mocha#2713
Reference
Failed Build: https://github.com/nightwatchjs/nightwatch/runs/4854125616 (PR: #2995)
PR which fixes the issue: https://github.com/cypress-io/cypress/pull/5779/files
The text was updated successfully, but these errors were encountered: