Exclude test folder from coverage

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2018-12-16 11:52:36 -02:00
parent 2638d6bf4c
commit eb70391d5c
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "./node_modules/.bin/mocha -C test/*.js",
"coverage": "./node_modules/.bin/istanbul cover '**/test/**' _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage && rm -rf ./coverage"
"coverage": "./node_modules/.bin/istanbul cover -x '**/test/**' _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage && rm -rf ./coverage"
},
"repository": {
"type": "git",