{"_id":"tap-bail","_rev":"374080","name":"tap-bail","description":"Bail out when the first TAP test fails","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"time":{"modified":"2021-07-29T06:08:07.000Z","created":"2014-02-23T16:39:59.548Z","1.0.0":"2017-03-03T12:20:34.379Z","0.0.0":"2014-02-23T16:39:59.548Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/juliangruber/tap-bail.git"},"versions":{"1.0.0":{"name":"tap-bail","version":"1.0.0","description":"Bail out when the first TAP test fails","repository":{"type":"git","url":"git+https://github.com/juliangruber/tap-bail.git"},"license":"MIT","scripts":{"test":"make test"},"bin":{"tap-bail":"bin/tap-bail.js"},"devDependencies":{"tap":"^0.4.8"},"dependencies":{"tap-parser":"^5.3.3"},"gitHead":"2516ffd4b0c6ab1e58ac5a69a3b3aca544264532","bugs":{"url":"https://github.com/juliangruber/tap-bail/issues"},"homepage":"https://github.com/juliangruber/tap-bail#readme","_id":"tap-bail@1.0.0","_shasum":"c5a8cc71191f037938cd567f97bda3ca9700199a","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"dist":{"shasum":"c5a8cc71191f037938cd567f97bda3ca9700199a","size":1791,"noattachment":false,"key":"/tap-bail/-/tap-bail-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tap-bail/download/tap-bail-1.0.0.tgz"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/tap-bail-1.0.0.tgz_1488543633676_0.5848777268547565"},"directories":{},"publish_time":1488543634379,"_cnpm_publish_time":1488543634379,"_hasShrinkwrap":false},"0.0.0":{"name":"tap-bail","version":"0.0.0","description":"Bail out when the first TAP test fails","repository":{"type":"git","url":"git://github.com/juliangruber/tap-bail"},"license":"MIT","scripts":{"test":"make test"},"bin":{"tap-bail":"bin/tap-bail.js"},"devDependencies":{"tap":"^0.4.8"},"dependencies":{"tap-parser":"^0.4.1"},"bugs":{"url":"https://github.com/juliangruber/tap-bail/issues"},"homepage":"https://github.com/juliangruber/tap-bail","_id":"tap-bail@0.0.0","dist":{"shasum":"aeda9f5739ccf7db26bba002aa12360d73a307f3","size":1710,"noattachment":false,"key":"/tap-bail/-/tap-bail-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tap-bail/download/tap-bail-0.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"directories":{},"publish_time":1393173599548,"_cnpm_publish_time":1393173599548,"_hasShrinkwrap":false}},"readme":"\n# tap-bail\n\n  Abort [TAP](http://en.wikipedia.org/wiki/Test_Anything_Protocol) test runners\n  on the first failing assertion.\n\n  Similar to mocha's `--bail`.\n\n  [![build status](https://secure.travis-ci.org/juliangruber/tap-bail.png)](http://travis-ci.org/juliangruber/tap-bail)\n\n## Example\n\n  With tap-bail:\n\n```bash\n$ make test | tap-bail\nTAP version 13\n# test.js\n# TAP version 13\n# success\nnot ok 1 (unnamed assert)\n  ---\n    file:   /Users/julian/pro/tap-bail/test.js\n    line:   5\n    column: 5\n    stack:\n      - getCaller (/Users/julian/pro/tap-bail/node_modules/tap/lib/tap-assert.js:418:17)\n      - Function.assert (/Users/julian/pro/tap-bail/node_modules/tap/lib/tap-assert.js:21:16)\n      - Test._testAssert [as ok] (/Users/julian/pro/tap-bail/node_modules/tap/lib/tap-test.js:87:16)\n      - Test.src (/Users/julian/pro/tap-bail/test.js:5:5)\n      - Test.EventEmitter.emit (events.js:117:20)\n      - Test.emit (/Users/julian/pro/tap-bail/node_modules/tap/lib/tap-test.js:104:8)\n      - GlobalHarness.Harness.process (/Users/julian/pro/tap-bail/node_modules/tap/lib/tap-harness.js:87:13)\n      - process._tickCallback (node.js:415:13)\n      - Function.Module.runMain (module.js:499:11)\n      - startup (node.js:119:16)\n  ...\n```\n\n  Without tap-bail:\n\n```bash\n$ make test\nTAP version 13\n# test.js\n# TAP version 13\n# success\nnot ok 1 (unnamed assert)\n  ---\n    file:   /Users/julian/pro/tap-bail/test.js\n    line:   5\n    column: 5\n    stack:\n      - getCaller (/Users/julian/pro/tap-bail/node_modules/tap/lib/tap-assert.js:418:17)\n      - Function.assert (/Users/julian/pro/tap-bail/node_modules/tap/lib/tap-assert.js:21:16)\n      - Test._testAssert [as ok] (/Users/julian/pro/tap-bail/node_modules/tap/lib/tap-test.js:87:16)\n      - Test.src (/Users/julian/pro/tap-bail/test.js:5:5)\n      - Test.EventEmitter.emit (events.js:117:20)\n      - Test.emit (/Users/julian/pro/tap-bail/node_modules/tap/lib/tap-test.js:104:8)\n      - GlobalHarness.Harness.process (/Users/julian/pro/tap-bail/node_modules/tap/lib/tap-harness.js:87:13)\n      - process._tickCallback (node.js:415:13)\n      - Function.Module.runMain (module.js:499:11)\n      - startup (node.js:119:16)\n  ...\nok 2 should be equal\nok 3 should be equal\n# fail\nok 4 should be equal\nok 5 (unnamed assert)\n# tests 5\n# pass  4\n# fail  1\nok 6 ./test.js\n\n\n1..6\n# tests 6\n# pass  5\n# fail  1\nmake: *** [test] Error 1\n```\n\n## Compatibility\n\n  Since all tap-bail needs is TAP output it works with any language and any\n  TAP producing library.\n\n  When using the node `tap` module, be sure to pass `--tap` in order not to\n  get the abbreviated output:\n\n```bash\n$ tap --tap test.js | tap-bail\n```\n\n## Installation\n\n```bash\n$ npm install -g tap-bail\n```\n\n## License\n\n  MIT\n \n","_attachments":{},"homepage":"https://github.com/juliangruber/tap-bail#readme","bugs":{"url":"https://github.com/juliangruber/tap-bail/issues"},"license":"MIT"}