README
tape-runner
A tape runner API allowing you to create custom test runners.
npm install tape-runner --save-dev
npm stats
Usage
test.js
require('tape-runner')()
package.json
{
"scripts": {
"test": "node test.js"
}
}
Features
- Installs the latest version of tape and tape-catch as
devDependencies
for you. - Auto-locates tests in the
test
,lib
, andapp
directories. - Supports naming test files
*.test.js
,*.tests.js
,test.js
, andtests.js
. - Supports passing values into tests.
- Supports passing in an alternative array of test files (ignores the default file glob).
API
runner(params, files)
arguments
[params]: (Array)
parameters to pass to exported test function.[files]: (Array)
files to pass to exported test function.
Contributing
SEE: contributing.md