Registry / testing / tap-bunny

tap-bunny

JSON →
library1.0.9jsnpmunverified

A simple TAP (Test Anything Protocol) output formatter that displays test results with a cute bunny motif. Version 1.0.9, infrequently updated. Built for use with tape (or any TAP-producing test runner). It reads TAP stream from stdin and outputs formatted results. Differentiates from other TAP reporters (e.g., tap-spec, tap-min) by its whimsical bunny output. No dependencies, lightweight.

npm install tap-bunny
INSTALL
IMPORT
SIG · TAP-BUNNY
T
tap-bunny
testingjavascriptv1.0.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tap-bunny
npx tap-bunny (or node test.js | tap-bunny)
require('tap-bunny')
This is a CLI tool, not a library. Usage via pipe in terminal.
tapBunny
node test.js | npx tap-bunny
import tapBunny from 'tap-bunny'
No JavaScript API. Only use as a command-line tool.
default
node test.js | node_modules/.bin/tap-bunny
require('tap-bunny')
Binaries in node_modules: tap-bunny is a CLI tool.

Shows how to install tap-bunny and pipe tape test output to the bunny formatter.

// First, install tap-bunny globally or locally npm install tap-bunny --save-dev // Then create a test file (test.js) using tape const test = require('tape'); test('basic arithmetic', function(t) { t.plan(2); t.equal(1 + 1, 2, '1+1=2'); t.equal(2 * 3, 6, '2*3=6'); }); // In terminal, run tests piped through tap-bunny // node test.js | npx tap-bunny // Or if installed globally: // node test.js | tap-bunny
Debug
Known issues
gotchatap-bunny expects TAP version 13 input only; older TAP versions may not format correctly.
fix
Ensure your test runner outputs TAP v13 (e.g., tape uses v13).
affects: >=1.0.0
gotchatap-bunny is a CLI tool; it cannot be imported as a module. Attempting to require() it will fail.
fix
Use it only via command line piping, e.g., node test.js | tap-bunny.
affects: >=1.0.0
gotchaNo output if stdin is not TAP format; tool silently exits without errors.
fix
Verify test runner produces TAP output by running node test.js alone.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'tap-bunny'
tap-bunny is not installed or not in PATH when using require.
fix
Install as dev dependency: npm install --save-dev tap-bunny. Use npx tap-bunny or add binary path.
tap-bunny: command not found
tap-bunny not installed globally or local node_modules/.bin not in PATH.
fix
Install with -g: npm install -g tap-bunny. Or use npx tap-bunny.
No TAP output? Check your test runner.
Input to pipe is not TAP format or test runner not producing TAP.
fix
Run node test.js without pipe to see raw output. Ensure test framework outputs TAP (e.g., tape, tap).
Upgrade
Version history
1.0.9latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
tap-bunny — npm install tap-bunny · libregistry