tape-index
Ensure all package modules are covered by tests
Creates tests index (test run entry point) which loads all tests files and ensures failures to be exposed for modules which do not seem to have corresponding test files
For example, for foo.js
module, utility will expect either test/foo.js
test file or test/foo
folder with multiple test files.
Installation
$ npm install tape-index
Usage
In project path:
$ npx tape-index
Will create a test.index.js
file, that when run will indicate with fail missing test files and will invoke all existing modules tests.
Following npm scripts setup is recommended
{
"test-prepare": "tape-index",
"test-run": "node test.index.js",
"test": "npm run test-prepare && npm run test-run"
}
Tests
$ npm test