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
|
node_modules
|
||||||
|
coverage
|
||||||
|
@ -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
|
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user