Skip to content
This repository

Showing 2 changed files with 9 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  Makefile
  2. 4  index.js
6  Makefile
@@ -22,6 +22,12 @@ docs: $(HTMLDOCS)
22 22
 	  | cat docs/layout/head.html - docs/layout/foot.html \
23 23
 	  > $@
24 24
 
  25
+test-cov: lib-cov
  26
+	@EXPRESS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
  27
+
  28
+lib-cov:
  29
+	@jscoverage lib lib-cov
  30
+
25 31
 site:
26 32
 	rm -fr /tmp/docs \
27 33
 	  && cp -fr docs /tmp/docs \
4  index.js
... ...
@@ -1,2 +1,4 @@
1 1
 
2  
-module.exports = require('./lib/express');
  2
+module.exports = process.env.EXPRESS_COV
  3
+  ? require('./lib-cov/express')
  4
+  : require('./lib/express');

0 notes on commit b6ee5fa

Please sign in to comment.
Something went wrong with that request. Please try again.