add coverage reporting using nyc and coveralls

This commit is contained in:
Benjamin Coe 2015-05-25 01:37:33 -07:00
parent e3272e8449
commit b630e70855
4 changed files with 10 additions and 1 deletions

View file

@ -13,7 +13,9 @@
},
"scripts": {
"test": "mocha",
"bench": "matcha benchmark.js"
"bench": "matcha benchmark.js",
"coverage": "nyc npm test && nyc report",
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
},
"files": [
"index.js"
@ -47,8 +49,10 @@
"supports-color": "^1.3.0"
},
"devDependencies": {
"coveralls": "^2.11.2",
"matcha": "^0.6.0",
"mocha": "*",
"nyc": "^2.1.4",
"require-uncached": "^1.0.2",
"resolve-from": "^1.0.0",
"semver": "^4.3.3"