runtests

A test runner/harness for use with TAP producing unit tests

npm install runtests
2 downloads in the last day
17 downloads in the last week
18 downloads in the last month

Runtests

A simple test runner/reporter for use with TAP producing unit tests. I recommend building those tests with tape, but any TAP-producing harness will work.

Usage

runtests [options] [files]

By default, runtests will execute javascript files in the tests/ directory, i.e. tests/*.js. Test file 
names can be globbed. Javascript files will be run with Node.js. All other file types should have a shebang. 
Otherwise, runtests doesn't discriminate as to how the TAP output is produced, as long as it comes via STDOUT.

Options:

-q,  --quiet        Only print summary results
-s,  --shuffle      Run tests in a random order
-r,  --reverse      Run tests in reverse order
-v,  --verbose      Print more
     --beep         Audible beep at end if any tests failed
     --archive      Saves TAP outputs to a directory or archive (.zip, .tar, or .tar.gz)
-h,  --help         Display this help

If your project has a package.json file, it is common to specify a test command for npm, e.g.:

{
    ...
    "devDependencies": {
        ...
        "runtests": "~0.1.0"
    },
    "scripts": {
        "test": "runtests"
    }
}
npm loves you