tap-bail is a command-line utility designed to streamline the testing process within the Test Anything Protocol (TAP) ecosystem. Its primary function is to read TAP output from standard input and terminate the test run immediately upon detecting the first failing assertion. This 'bail out' behavior is analogous to the `--bail` option found in other popular test runners like Mocha, enabling developers to pinpoint and address initial failures more efficiently without the overhead of waiting for an entire test suite to complete. The package is currently at version 1.0.0, indicating a stable, feature-complete state, likely in maintenance mode rather than active, rapid development. A key advantage of `tap-bail` is its broad compatibility: because it operates solely on TAP stream input, it functions seamlessly with any programming language or testing framework capable of generating TAP-compliant output. It is exclusively a command-line tool and does not expose any programmatic APIs for direct library usage within codebases. Its design emphasizes simplicity and utility within a CI/CD pipeline or local development workflow.
npm install tap-bailNo compatibility data collected yet for this library.
Demonstrates how to install tap-bail and use it to bail out of a test run after the first failure with a simple TAP test file.
Ensure your `tap` command includes the `--tap` flag, e.g., `tap --tap my-tests.js | tap-bail`.
Ensure `tap-bail` is correctly piped to your test runner's output (e.g., `your-test-command | tap-bail`). Verify that `your-test-command` is producing valid TAP output. If using the `tap` module, remember to include `--tap` (e.g., `tap --tap my-tests.js | tap-bail`).
No dependency data recorded yet.