-
-
Notifications
You must be signed in to change notification settings - Fork 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
🚀 Feature: Possibility to return 0 exit code when tests run successfully even with fails #4216
Comments
Because mocha don't make difference between infrastructure and runtime problems and failing tests This reverts commit e6d39ce mochajs/mocha#4216
Because mocha don't make difference between infrastructure and runtime problems and failing tests This reverts commit e6d39ce mochajs/mocha#4216
I didn't understand it. Could you explain more detail for usecases. |
Using Mocha in some build tools (for example Gradle). But for now I have to fail of "parent" build system on both cases, when tests are failed which is valid situation for "parent" build system, and infrastructure problem (syntax problem e.g.) which is invalid situation for "parent" build system. If I ignore exit code of Mocha, there is no fail on failed tests (and it is OK) and on infrastructure problem (and it is not OK) |
Thanks. This is a duplicate of...several issues. Can you run |
@boneskull Thank you for reply.
I want to get zero code only if no "infrastructure" problem. If I run It is similar with next property in Karma |
Published in |
Is your feature request related to a problem or a nice-to-have?? Please describe.
A clear and concise description of what the problem is. E.g. I'm always frustrated when [...]
Sometimes it is useful to separate situations when tests run successfully, and there is no infrastructure or runtime problems, and when there are some runtime problems.
Possibility to return non-zero exit code only on infrastructure or runtime problems make easier integration with different toolchain.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Flag, something like
failOnFailingTests
like in Karma (https://github.com/karma-runner/karma/blob/master/docs/config/01-configuration-file.md#failonfailingtestsuite).Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Karma
https://github.com/karma-runner/karma/blob/master/docs/config/01-configuration-file.md#failonfailingtestsuite
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: