Is there a built-in or reliable way to end running the succeeding tests upon failing one of them?
Thanks,
Justin
We have an onFinish callback, but not an onFailure callback.
That seems like a reasonable thing to add.
Yes, something like mocha --bail would be nice.
-b, --bail bail after first test failure
Just found https://github.com/juliangruber/tap-bail
@olalonde Sorry if this is a silly question, but how'd you set that up? I tried using is as tape test/**/*.js | tap-bail (got a pipe error) and tape --tap test/**/*.js | tap-bail and got no output.
Other notes, I'd like to use blue-tape and faucet with this, but I disabled them for this test.
@kevinpeno you should probably ask on that repo as I just started using it :P my script is babel-tape-runner test/custom.js | tap-bail | faucet (I'm also using blue-tape)
Can this be closed now?
Closed! Thanks everyone!
Fixed in #408.
Most helpful comment
We have an onFinish callback, but not an onFailure callback.
That seems like a reasonable thing to add.