Permalink
Browse files

use istanbul for code coverage

* Requires no instrumentation
* add `make test-cov` to generate coverage reports
  • Loading branch information...
1 parent 5cdcb47 commit 0389b0c0ebb4f13a3dc379e1eefdef18c81a8f0a @defunctzombie defunctzombie committed Feb 28, 2013
Showing with 10 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +6 −0 Makefile
  3. +1 −3 index.js
  4. +2 −1 package.json
View
@@ -2,3 +2,4 @@ node_modules
.DS_Store
build
components
+/coverage
View
@@ -19,6 +19,12 @@ test:
--reporter $(REPORTER) \
$(TESTS)
+test-cov:
+ @./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
+ --require ./test/common \
+ --reporter $(REPORTER) \
+ $(TESTS)
+
test-browser:
@./node_modules/.bin/serve test/
View
@@ -1,4 +1,2 @@
-module.exports = process.env.EIO_COV
-? require('./lib-cov/')
-: require('./lib/');
+module.exports = require('./lib/');
View
@@ -18,7 +18,8 @@
"devDependencies": {
"mocha": "*",
"serve": "*",
- "expect.js": "*"
+ "expect.js": "*",
+ "istanbul": "*"
},
"component": {
"scripts": {

0 comments on commit 0389b0c

Please sign in to comment.