NOTE: I have switched to primarily using Deno, which has a sound, builtin test runner. Therefore, I have no interest in maintaining this project anymore. If you would like to maintain it, contact me ([email protected]) and I will transfer ownership.
A small and colorful reporter for zip-tap
npm i -D zip-tap-reporter
Just prefix your test command with zip-tap-reporter
.
zip-tap-reporter node tests.js
If the command that you run your tests with is complex, just wrap it in quotes:
zip-tap-reporter "node globbed-tests.js | some-filter"
zip-tap-reporter
also works on a pipe.
node tests.js | zip-tap-reporter
This feature is depreciated though, and will be removed in the next major release.
const createReporter = require('zip-tap-reporter');
const reporter = createReporter();
process.stdin.on('data', reporter.log);
See bin/cmd
for more information.