Skip to content

Commit c0afe80

Browse files
committed
Coverage config
Signed-off-by: Fabio José <[email protected]>
1 parent b211960 commit c0afe80

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "CloudEvents SDK for JavaScript",
55
"main": "index.js",
66
"scripts": {
7-
"test": "./node_modules/.bin/mocha -C test/*.js"
7+
"test": "./node_modules/.bin/mocha -C test/*.js",
8+
"coverage": "./node_modules/.bin/istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage && rm -rf ./coverage"
89
},
910
"repository": {
1011
"type": "git",
@@ -38,7 +39,10 @@
3839
"chai": "4.2.0",
3940
"mocha": "5.2.0",
4041
"chai-http": "4.2.0",
41-
"nock": "10.0.2"
42+
"nock": "10.0.2",
43+
"codacy-coverage": "3.3.0",
44+
"mocha-lcov-reporter": "1.3.0",
45+
"istanbul": "0.4.5"
4246
},
4347
"publishConfig": {
4448
"access": "public"

0 commit comments

Comments
 (0)