Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.
/ argg Public archive

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. (n.b. happily obsolesced by Tape 0.3.0)

License

Notifications You must be signed in to change notification settings

isao/argg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

argg

note! this project is obsolete, this functionality now ships with tape as of version 0.3.0.

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 pathnames from the command line. Shell globbing test runner, if you will, which you can do when your tests are simple scripts.

usage

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 can run tests and get code coverage with istanbul like:

npm test
npm run cover

why

Hey ok, tap has a nice test runner, but I would need something like this for tape by itself, or for either tap or tape with istanbul. I could make a file and explicitly require the files, but that takes typing, and I know I'd miss something.

license

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

About

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. (n.b. happily obsolesced by Tape 0.3.0)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published