Tape: End test upon failure

Created on 24 May 2017  路  8Comments  路  Source: substack/tape

Is there a built-in or reliable way to end running the succeeding tests upon failing one of them?

Thanks,
Justin

enhancement pull request wanted

Most helpful comment

We have an onFinish callback, but not an onFailure callback.

That seems like a reasonable thing to add.

All 8 comments

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

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cagross picture cagross  路  5Comments

ralphtheninja picture ralphtheninja  路  6Comments

frankandrobot picture frankandrobot  路  4Comments

javajosh picture javajosh  路  5Comments

dcousens picture dcousens  路  3Comments