refactor(coverage): refactor code coverage generation
This commit is contained in:
parent
9fb8c227fb
commit
1a54fc6c9f
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
node_modules
|
||||
coverage
|
||||
|
@ -22,7 +22,6 @@ script:
|
||||
- npm run sa
|
||||
|
||||
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/codeclimate-test-reporter/bin/codeclimate.js
|
||||
- rm -rf ./coverage
|
||||
|
@ -4,6 +4,7 @@
|
||||
"description": "Parse a human readable time string into a time based value",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"cover": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -x test.js test.js",
|
||||
"dev": "watch 'clear; npm test -s;' ./ -d",
|
||||
"sa": "jshint index.js && jscs index.js",
|
||||
"test": "mocha test.js"
|
||||
|
Loading…
Reference in New Issue
Block a user