generator-tap
v1.0.2
Published
yeoman generator that sets up tap, and optionally installs sinon, in the target project
Downloads
3
Readme
generator-tap
yeoman generator that sets up tap, and optionally, sinon, in the target project
adds the following npm scripts to the package.json
file:
"scripts": {
"cover:browser": "npm test -- --coverage-report=lcov",
"cover:cli": "npm test -- --cov",
"cover:travis": "npm test -- --coverage-report=lcov --no-browser",
"test": "tap test/**/*.test.js --reporter spec"
}
note: the generator will not overwrite a test script if it already exists in a package.json file, unless it’s the default echo \"Error: no test specified\" && exit 1
script
installation
npm install -g generator-tap
use
yo tap