Add code coverage
This commit is contained in:
parent
36a24e937e
commit
8e9433a218
|
@ -1,2 +1,3 @@
|
||||||
coverage
|
coverage
|
||||||
node_modules
|
node_modules
|
||||||
|
.nyc_output
|
||||||
|
|
|
@ -9,14 +9,18 @@
|
||||||
"zcash"
|
"zcash"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"coverage-report": "nyc report --reporter=lcov",
|
||||||
|
"coverage-html": "nyc report --reporter=html",
|
||||||
|
"coverage": "nyc --check-coverage --branches 90 --functions 90 mocha",
|
||||||
"integration": "mocha test/integration/",
|
"integration": "mocha test/integration/",
|
||||||
"prepublish": "npm run test",
|
"prepublish": "npm run test",
|
||||||
"standard": "standard",
|
"standard": "standard",
|
||||||
"test": "npm run standard && npm run unit",
|
"test": "npm run standard && npm run coverage",
|
||||||
"unit": "mocha"
|
"unit": "mocha"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"mocha": "3.4.2",
|
"mocha": "3.4.2",
|
||||||
|
"nyc": "10.3.2",
|
||||||
"standard": "10.0.2"
|
"standard": "10.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue