Permalink
Browse files

Adding code coverage with @itay/node-cover

  • Loading branch information...
1 parent 4ce32cf commit 5ed8a3e5c7f78fe90d87127bd352a8b1cfdf8611 @domenic committed Apr 9, 2012
Showing with 9 additions and 2 deletions.
  1. +1 −0 .coverignore
  2. +4 −0 .gitignore
  3. +4 −2 package.json
View
@@ -0,0 +1 @@
+test/
View
@@ -1,2 +1,6 @@
node_modules/
npm-debug.log
+
+.coverage_data/
+.coverage_debug/
+cover_html/
View
@@ -21,16 +21,18 @@
"main": "./lib/chai-as-promised.js",
"scripts": {
"test": "mocha",
- "lint": "jshint ./lib --show-non-errors"
+ "lint": "jshint ./lib --show-non-errors",
+ "cover": "cover run node_modules/mocha/bin/_mocha && cover report html && start ./cover_html/index.html"
},
"engines": {
"node": "*"
},
"dependencies": {},
"devDependencies": {
"coffee-script": "1",
- "mocha": "*",
+ "mocha": "1",
"chai": "*",
+ "cover": "*",
"jshint": "*",
"q": "*"
}

0 comments on commit 5ed8a3e

Please sign in to comment.