-
Notifications
You must be signed in to change notification settings - Fork 23
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
Uncaught errors will cause tape-run to exit successfully #27
Labels
Comments
i can reproduce, working on it |
needs to be merged: https://github.com/substack/tap-finished/pull/6 |
published a temporary fix as 2.1.1, until tap-finished is fixed |
Related to this. I am running // package.json
{
"scripts": {
"test": "node test.js <test file globs>"
}
} // test.js
...
reader
.pipe(tapeRun())
.pipe(tapSpec())
.pipe(process.stdout); and the return is 0. What should I do to get it to return error? |
that should work: let code;
reader
.pipe(tapeRun())
.on('results', results => {
process.exit(Number(!results.ok));
})
.pipe(tapSpec())
.pipe(process.stdout); |
Thank! |
I changed it a bit to: reader
.pipe(run())
.on('results', results => {
if (!results.ok) {
process.exit(1);
}
})
.pipe(tapSpec())
.pipe(process.stdout); so that the summary will sent to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider this test:
Running this through
tape-run
like so will cause it to succeed.The text was updated successfully, but these errors were encountered: