argg

A poor man's test runner for tap, tape, or similar, that also can be used with istanbul. It's just three lines of code to require all globs or pathnames provided as command line arguments.

argg

A poor man's test runner for tap, tape, or similar, that also can be used with istanbul. It's just three lines of code to require all globs or pathnames provided as command line arguments.

Install like:

npm i argg  --save-dev

…then in your package.json add:

"scripts": {
    "test": "node node_modules/argg tests/*.js",
    "cover": "istanbul cover node_modules/argg tests/*.js"
},

…so from the command line, you do:

npm test
npm run cover

Sure, it barely deserves to be a module, but I got tired of copy/paste. Yes, tap has a nice test runner but I'd still need something like this for tape and/or istanbul.

MIT licensed by permission from my employer. See LICENSE.txt.