Permalink
Browse files

test coverage support

  • Loading branch information...
1 parent f103a55 commit ec9275e4172e3edccf791676d85d569a6929a281 @logicalparadox logicalparadox committed Apr 24, 2012
Showing with 9 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +8 −1 Makefile
View
@@ -15,3 +15,4 @@ node_modules
npm-debug.log
.DS_Store
*.swp
+coverage.html
View
@@ -13,4 +13,11 @@ test:
--reporter $(REPORTER) \
$(TESTS)
-.PHONY: all clean test
+test-cov: lib-cov
+ @CHAI_TIMERS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
+
+lib-cov:
+ @rm -rf lib-cov
+ @jscoverage lib lib-cov
+
+.PHONY: all clean test test-cov lib-cov

0 comments on commit ec9275e

Please sign in to comment.