Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

`make test-cov` support

  • Loading branch information...
commit 24846ac8400db09baedcafa424b758f32242d68a 1 parent 614fa7e
@logicalparadox logicalparadox authored
Showing with 8 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +7 −0 Makefile
View
1  .gitignore
@@ -16,3 +16,4 @@ npm-debug.log
*.swp
.DS_Store
+coverage.html
View
7 Makefile
@@ -13,4 +13,11 @@ test:
--reporter $(REPORTER) \
$(TESTS)
+test-cov: lib-cov
+ @CHAI_STATS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
+
+lib-cov:
+ @rm -rf lib-cov
+ @jscoverage lib lib-cov
+
.PHONY: all clean test
Please sign in to comment.
Something went wrong with that request. Please try again.