Registry / testing / ava-tap-json

ava-tap-json

JSON →
library2.0.4jsnpmunverified

A CLI tool that formats TAP output from AVA or tape into JSON. Version 2.0.4 is a maintenance release with no recent updates. It pipes TAP stream data and outputs structured JSON with stats and asserts arrays. Unlike other reporters, it works purely at the shell level and does not integrate as a programming API.

npm install ava-tap-json
INSTALL
IMPORT
SIG · AVA-TAP-JSON
A
ava-tap-json
testingjavascriptv2.0.4
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.

ava-tap-json (CLI)
ava-tap-json < test.tap
import ava-tap-json from 'ava-tap-json'
This package is a CLI tool, not a JavaScript module. It cannot be imported.

Shows how to install globally and pipe tape output to ava-tap-json.

npm install -g ava-tap-json && tape test/*.js | ava-tap-json
Debug
Known issues
deprecatedPackage has no updates since 2016 and may not work with latest AVA versions.
fix
Use AVA's built-in tap reporter or switch to a maintained alternative.
affects: >=2.0.0
gotchaava-tap-json expects input from TAP stream; it does not work with direct AVA API output.
fix
Run AVA with TAP reporter: ava --tap | ava-tap-json
affects: >=1.0.0
gotchaInstallation as a project dependency requires running from node_modules/.bin or through npx.
fix
Use npx ava-tap-json or add to scripts in package.json.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'ava-tap-json'
ava-tap-json installed locally but not globally, and not run via npx or full path.
fix
Use npx ava-tap-json or add a script: 'report': 'ava --tap | ava-tap-json'
Util.emitWarning: Use of process.binding() is deprecated.
ava-tap-json uses deprecated Node.js internals.
fix
No fix; consider switching to a maintained alternative.
Upgrade
Version history
2.0.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
16
OpenAI (training)
1
Resources
ava-tap-json — npm install ava-tap-json · libregistry