Registry / testing / tap-nunit

tap-nunit

JSON →
library0.0.3jsnpmunverified

tap-nunit is an alpha-quality formatter that converts Test Anything Protocol (TAP) output into nUnit-compatible XML format. Current stable version 0.0.3, with irregular releases. It parses standard TAP streams from test runners and produces XML output for integration with nUnit-based reporting tools. Limited to small test suites due to performance and stability issues. Minimal configuration required, but not recommended for production use.

npm install tap-nunit
INSTALL
IMPORT
SIG · TAP-NUNIT
T
tap-nunit
testingjavascriptv0.0.3
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.

NUnitFormatter
import NUnitFormatter from 'tap-nunit'
const NUnitFormatter = require('tap-nunit').default;
Default export is a class; CommonJS require needs .default
format
import { format } from 'tap-nunit'
const { format } = require('tap-nunit');
Named export exists; direct destructure from require works

Reads TAP output from a file, converts to nUnit XML, and saves the result.

import NUnitFormatter from 'tap-nunit'; import fs from 'fs'; const tapData = fs.readFileSync('test.tap', 'utf8'); const formatter = new NUnitFormatter(); const nunitOutput = formatter.format(tapData); fs.writeFileSync('test-results.xml', nunitOutput); console.log('Converted TAP to nUnit XML');
Debug
Known issues
deprecatedMarked as alpha; not recommended for production use.
fix
Consider using a stable alternative like tap-junit or tap-xunit.
affects: <1.0.0
deprecatedPackage has not been updated in over 5 years; likely abandoned.
fix
Seek alternative packages for TAP to nUnit conversion.
affects: <=0.0.3
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies
tap-parserrequiredTAP stream parsing
Agent activity
4 hits · last 30 days
node
4
Resources
tap-nunit — npm install tap-nunit · libregistry