Skip to content

Commit

Permalink
Use istanbl
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Jul 10, 2014
1 parent 46c40da commit 3587ea5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ logs
results

node_modules
npm-debug.log
npm-debug.log
coverage
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ REPORTER = spec
TIMEOUT = 10000
MOCHA_OPTS =
COMPONENT = ./node_modules/.bin/component
ISTANBUL = ./node_modules/.bin/istanbul
MOCHA = ./node_modules/.bin/_mocha

build: index.js components
@$(COMPONENT) build --dev
Expand All @@ -17,16 +19,14 @@ install-test:
@NODE_ENV=test npm install --registry=http://r.cnpmjs.org

test: install-test
@NODE_ENV=test ./node_modules/.bin/mocha \
@NODE_ENV=test $(MOCHA) \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
$(MOCHA_OPTS) \
$(TESTS)

test-cov: install-test
@$(MAKE) test MOCHA_OPTS='--require blanket' REPORTER=html-cov | ./node_modules/.bin/cov

cov: test-cov
@$(ISTANBUL) cover --report html $(MOCHA) -- -R $(REPORTER) $(TESTS)

test-all: test test-component test-cov

Expand Down
11 changes: 0 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
"scripts": {
"test": "make test-all"
},
"config": {
"blanket": {
"pattern": "eventproxy/lib",
"data-cover-flags": {
"debug": false
}
},
"travis-cov": {
"threshold": 97
}
},
"repository": {
"type": "git",
"url": "git://github.com/JacksonTian/eventproxy.git"
Expand Down

0 comments on commit 3587ea5

Please sign in to comment.