Taper (a fork of
tapr) is a Node.js tap
test runner which allows stdout and stderr mixed in with the tap output. Also
taper adds color to the output. Core based on Isaac Z Schlueter original tap
For a nice description of Node.js Tap tests, see Isaac's readme on the
node-tap github page.
Isaac designed his Tap implementation to be modular for easy consumation and extension. Taper customizes the runner component and uses the rest of node-tap as is.
Because Tap is modular, it is designed to be consumed in many ways (like automated build tools, customized runners) and other testing frameworks can provide producers to provide tap input.
npm install taper # install locally# ORnpm install -g taper # install globally
Add to your project package.json:
"devDependencies" :"taper" : "~0.2.0"
npm install your package with dev dependencies from the project
node_modules/.bin/taper.js fileOrDir # if installed locally#ORtaper fileOrDir # if installed globally#taper # display usagetaper --help # display usagetaper --version # display versiontaper --no-color fileOrDir # run without color output
Stderr and stdout is muted except for files which have a failing test
taprby author: Jeff Barczewski (@jeffbski)