Skip to content

Commit

Permalink
use cover module for test coverage
Browse files Browse the repository at this point in the history
cover module does not require instrumentation to use.

`make test-cov` as before
  • Loading branch information
defunctzombie committed Dec 7, 2012
1 parent 17b1003 commit 9551eba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -15,3 +15,5 @@ docs/*.html
docs/*.json
node_modules
.idea
cover_html
.coverage_data
9 changes: 3 additions & 6 deletions Makefile
Expand Up @@ -15,11 +15,8 @@ test:
docs: $(HTML)
@mv $(HTML) docs

test-cov: lib-cov
@CONNECT_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html

lib-cov:
@jscoverage lib $@
test-cov:
@NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html

%.html: %.js
$(DOX) < $< | node support/docs > $@
Expand All @@ -37,4 +34,4 @@ site: docclean docs
benchmark:
@./support/bench

.PHONY: test-cov site docs test docclean benchmark
.PHONY: test-cov site docs test docclean benchmark
4 changes: 0 additions & 4 deletions index.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -24,7 +24,7 @@
"jade": "*",
"dox": "*"
},
"main": "index",
"main": "lib/connect",
"engines": {
"node": ">= 0.5.0"
},
Expand Down

0 comments on commit 9551eba

Please sign in to comment.