Tape
github.com
- Free plan
- Web
What Tape is
Tape is a free, MIT-licensed test harness for Node.js and web browsers that produces TAP version 13 output. Tests can run through Node.js or the `tape` command-line binary, which supports file globbing. Output includes test names, assertion results and a summary. The assertion API covers truthiness, equality, deep equality, exceptions and pattern matching. Test callbacks may return promises, and explicit planning and timeout methods support asynchronous tests. Tape keeps its core minimal, with additional functionality commonly supplied by separate modules. The README lists companion packages such as `tap-spec`, `tap-json` and `tap-junit` for TAP formatting and reporting. By default, uncaught exceptions in tests are not intercepted and cause Tape to crash; `tape-catch` is suggested for reporting them as TAP errors. The README provides `npm install tape --save-dev` for installation. Its `--no-only` option makes a run fail when a `.only` test remains. Parallel execution is not supported. The repository security page reports no published security advisories and directs vulnerability reports to @ljharb or Tidelift.
Who it suits
Tape suits JavaScript developers running tests in Node.js or browsers who want TAP output and a small core. Teams needing extra reporting can add companion modules.
Good to know, and what to watch
- Free and MIT licensed
- TAP version 13 output
- Promise-based asynchronous tests
- File globbing through the CLI
- Multiple assertion types
- Uncaught exceptions crash Tape by default
- Parallel execution is not supported
- Extra capabilities generally require modules
The verdict
Tape offers a small, extensible test runner with standard TAP output and familiar assertions. Developers should account for its default uncaught-exception behavior and lack of parallel execution.
What the maker publishes
- Assertions
- The API includes truthiness, equality, deep equality, exception, and pattern-matching assertions. source
- Assertions
- Its assertion methods include truthy, equality, deep equality, exception, and pattern-matching assertions. source
- Async tests
- Tape supports promises returned from test callbacks and provides explicit planning and timeout methods. source
- Async tests
- Tape implicitly awaits a test callback that returns a Promise and fails the test if that Promise rejects. source
- CI option
- The `--no-only` option makes a test run fail if a `.only` test is present. source
- Extensibility
- Tape describes its core as minimal and says additional features are usually added through other modules. source
- Install
- The README recommends installing Tape with `npm install tape --save-dev`. source
- Installation
- The README gives `npm install tape --save-dev` as the installation command. source
- Integrations
- The README lists companion modules for TAP formatting and reporting, including `tap-spec`, `tap-json`, and `tap-junit`. source
- Integrations
- The README lists companion modules for TAP reporters, including tap-spec, tap-dot, faucet, tap-json, and tap-xunit. source
- License
- The tape-testing organization lists the Tape repository as MIT licensed. source
- License
- The repository identifies Tape's license as MIT. source
- Minimal core
- The README describes Tape as having a minimal core and says additional features are usually added with other modules. source
- Notable limitation
- By default, uncaught exceptions in tests are not intercepted and cause Tape to crash. source
- Purpose
- Tape is a TAP-producing test harness for Node.js and browsers. source
- Purpose
- Tape is a TAP-producing test harness for Node.js and browsers. source
- Security
- The repository links a security policy, but the opened policy link did not show separate security or compliance claims. source
- Security advisories
- The repository security page states that there are no published security advisories. source
- Security reporting
- The repository security page directs vulnerability reports to maintainer @ljharb or Tidelift. source
- Test execution
- Tests can run through Node.js or the `tape` command-line binary, which supports file globbing. source
- Test execution
- Tests execute serially, and the command-line runner can select test files with glob patterns. source
- Test output
- Tape emits TAP version 13 output with test names, assertion results, and a summary. source
- Test output
- Tape writes TAP output by default and can provide an object-mode output stream. source
- Unhandled exceptions
- By default, uncaught exceptions in tests are not intercepted and cause Tape to crash; the README suggests tape-catch to report them as TAP errors. source
Checked against the maker's pages on 9 Oct 2026.