# tape

> Minimal TAP-producing test harness for Node.js and browsers

Source: https://talira.ai/catalog/tape-w4vrry53
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / testing / frameworks](https://talira.ai/categories/developer-tools/testing/frameworks), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Platforms: linux, macos, windows, web[^2]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [tape-testing](https://talira.ai/orgs/tape-testing.md)

tape is a small test harness for JavaScript that runs in Node.js and in browsers and prints its results in the Test Anything Protocol (TAP). Tests are plain functions given an assertion object, with plan counts, async and promise-returning tests, teardown hooks, timeouts and a set of strict and loose equality and deep-equality assertions. A tape command runs test files by glob, with flags to preload modules, ignore files and fail on a leftover .only. It keeps a minimal core: colourful output and other reporters come from separate modules that read its TAP output.

## Links

- GitHub: https://github.com/tape-testing/tape

## Problems it solves

- write simple unit tests for a Node.js module without a big test framework
- run the same JavaScript tests in Node and in the browser
- get test results as TAP output I can pipe into any reporter

## Features

- Tests as plain functions with plan counts, async and promise-returning tests
- Strict and loose equality, deep-equality, throws and error assertions
- Results in the Test Anything Protocol (TAP), for any TAP reporter
- A tape command that runs test files by glob, with --require, --import, --ignore and --no-only flags
- Runs in Node.js and in browsers
- Teardown hooks, per-test timeouts and onFinish/onFailure callbacks

## Trust

Overall: 0.62 out of 1.
Signals: maintenance 0.84, adoption 0.75, momentum 0.47, community 0.83, backing 0.30, extensibility 0.00.

- last commit 11 days ago
- 36 commits in the last 90 days
- 5.8k GitHub stars
- 115 contributors
- accepts sponsorship (Github, Tidelift)
- backed by tape-testing

## Alternatives

- [Mocha](https://talira.ai/catalog/mocha-81yyxe95.md): Feature-rich JavaScript test framework for Node.js and the browser
- [Jasmine](https://talira.ai/catalog/jasmine-qz2ethkq.md): Behaviour-driven JavaScript testing framework for browsers and Node.js
- [Vitest](https://talira.ai/catalog/vitest-eyy494yh.md): Next generation testing framework powered by Vite
- [Jest](https://talira.ai/catalog/jest-wp596gce.md): Delightful JavaScript Testing
- [node-tap](https://talira.ai/catalog/node-tap-k49aaxfx.md): Test Anything Protocol test framework for JavaScript and TypeScript
- [Nightwatch.js](https://talira.ai/catalog/nightwatch-js-zfbg7zt0.md): Node.js end-to-end testing framework on the W3C WebDriver API

## Sources

[^1]: https://github.com/tape-testing/tape/blob/master/LICENSE (checked 28 Nov 2026)
[^2]: https://github.com/tape-testing/tape/blob/master/readme.markdown (checked 28 Nov 2026)
