tape-index

3.2.0 • Public • Published

*nix build status Windows build status Tests coverage Transpilation status npm version

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

Readme

Keywords

Package Sidebar

Install

npm i tape-index

Weekly Downloads

2

Version

3.2.0

License

ISC

Unpacked Size

12.1 kB

Total Files

9

Last publish

Collaborators

  • medikoo