{"id":13739491,"url":"https://github.com/juliangruber/tap-bail","last_synced_at":"2025-05-05T23:12:40.533Z","repository":{"id":14401195,"uuid":"17111869","full_name":"juliangruber/tap-bail","owner":"juliangruber","description":"Bail out when the first TAP test fails","archived":false,"fork":false,"pushed_at":"2017-03-03T12:20:30.000Z","size":4,"stargazers_count":17,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T23:12:34.446Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juliangruber.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-23T16:39:09.000Z","updated_at":"2024-01-28T08:05:45.000Z","dependencies_parsed_at":"2022-07-21T18:18:28.363Z","dependency_job_id":null,"html_url":"https://github.com/juliangruber/tap-bail","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Ftap-bail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Ftap-bail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Ftap-bail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Ftap-bail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliangruber","download_url":"https://codeload.github.com/juliangruber/tap-bail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252590628,"owners_count":21772940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T04:00:34.495Z","updated_at":"2025-05-05T23:12:40.511Z","avatar_url":"https://github.com/juliangruber.png","language":"JavaScript","funding_links":[],"categories":["Reporters"],"sub_categories":["JavaScript"],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliangruber%2Ftap-bail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliangruber%2Ftap-bail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliangruber%2Ftap-bail/lists"}