Add code coverage

This commit is contained in:
Jack Grigg 2017-05-31 13:34:40 +12:00
parent 36a24e937e
commit 8e9433a218
No known key found for this signature in database
GPG Key ID: 665DBCD284F7DAFF
2 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
coverage
node_modules
.nyc_output

View File

@ -9,14 +9,18 @@
"zcash"
],
"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/",
"prepublish": "npm run test",
"standard": "standard",
"test": "npm run standard && npm run unit",
"test": "npm run standard && npm run coverage",
"unit": "mocha"
},
"devDependencies": {
"mocha": "3.4.2",
"nyc": "10.3.2",
"standard": "10.0.2"
}
}