Permalink
Browse files

Add code coverage using cover

  • Loading branch information...
1 parent df9e618 commit 9163e84875d0b6630846e9cb2888c34187d08cce @stenington stenington committed Aug 27, 2013
Showing with 17 additions and 0 deletions.
  1. +1 −0 .coverignore
  2. +2 −0 .gitignore
  3. +14 −0 Makefile
View
1 .coverignore
@@ -0,0 +1 @@
+test/
View
2 .gitignore
@@ -1 +1,3 @@
node_modules
+cover_html
+.coverage_data
View
14 Makefile
@@ -0,0 +1,14 @@
+tests := $(shell ls test/*.test.js)
+cover-each = $(notdir $(tests))
+
+test-cov: $(cover-each)
+ sleep 1 # combine doesn't seem to get all the runs without this
+ @cover combine
+ @cover report html
+
+$(cover-each):
+ @cover run test/$@
+
+clean:
+ rm -rf cover_html
+ rm -rf .coverage_data

0 comments on commit 9163e84

Please sign in to comment.