-
Notifications
You must be signed in to change notification settings - Fork 205
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
gentest ignores test results when test returns nonzero #2919
Comments
No, this isn't intended, a test can return nonzero and produce the results file, which should then get interpreted - generally the expectation is that the exit code matches the success or failure of the test, which is detailed in the results file. |
There's no error message, it just reports the test as having errored. I think what's going on is the test returns nonzero, but I initially I thought that |
I'm running some mocha tests with please. When a test fails, mocha returns
1
. Please interprets this as an error, and doesn't evaluate the results in$RESULTS_FILE
.Is this intended?
I'm currently working around this by running
$TEST_COMMAND || true
to force the exit code to always be 0. Then please reads$RESULTS_FILE
and shows breaking tests.The text was updated successfully, but these errors were encountered: