Add a coverage script that tracks test coverage with istanbul

This commit is contained in:
Timothy Gu
2015-01-10 21:22:06 -08:00
parent 8f00b60019
commit 6bb89fac7a
2 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@@ -16,3 +16,4 @@ site/log/*
npm-debug.log
doc/
test/tmp
coverage/

View File

@@ -24,12 +24,14 @@
"browserify": "^8.0.3",
"uglify-js": "^2.4.16",
"mocha": "^2.1.0",
"jake": "^8.0.0"
"jake": "^8.0.0",
"istanbul": "~0.3.5"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
"test": "mocha",
"coverage": "istanbul cover node_modules/mocha/bin/_mocha"
}
}