refactor(coverage): refactor code coverage generation

This commit is contained in:
Michael Barrett 2016-03-06 21:49:16 +00:00
parent 9fb8c227fb
commit 1a54fc6c9f
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
node_modules node_modules
coverage

View File

@ -22,7 +22,6 @@ script:
- npm run sa - npm run sa
after_script: after_script:
- istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec - npm run cover
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- cat ./coverage/lcov.info | ./node_modules/codeclimate-test-reporter/bin/codeclimate.js - cat ./coverage/lcov.info | ./node_modules/codeclimate-test-reporter/bin/codeclimate.js
- rm -rf ./coverage

View File

@ -4,6 +4,7 @@
"description": "Parse a human readable time string into a time based value", "description": "Parse a human readable time string into a time based value",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"cover": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -x test.js test.js",
"dev": "watch 'clear; npm test -s;' ./ -d", "dev": "watch 'clear; npm test -s;' ./ -d",
"sa": "jshint index.js && jscs index.js", "sa": "jshint index.js && jscs index.js",
"test": "mocha test.js" "test": "mocha test.js"