Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
use istanbul replace blanket. gotwarlost/istanbul#44
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Mar 3, 2014
1 parent 8f941f2 commit 9af6950
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 33 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ logs
results

node_modules
npm-debug.log
npm-debug.log
.DS_Store
coverage/
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ coverage.html
Makefile
.travis.yml
logo.png
.DS_Store
coverage/
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
language: node_js
node_js:
- '0.11'
script: make test-coveralls
16 changes: 3 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,14 @@ install:
@npm install --registry=http://r.cnpmjs.org --cache=${HOME}/.npm/.cache/cnpm

test: install
@NODE_ENV=test ./node_modules/.bin/mocha \
--harmony \
@NODE_ENV=test node --harmony \
node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha \
-- -u exports \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
$(MOCHA_OPTS) \
$(TESTS)

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

cov: test-cov

test-coveralls: test
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@-$(MAKE) test MOCHA_OPTS='--require blanket' REPORTER=mocha-lcov-reporter | ./node_modules/.bin/coveralls

test-all: test test-cov

autod: install
@./node_modules/.bin/autod -w
@$(MAKE) install
Expand Down
21 changes: 3 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,20 @@
"description": "gzip support for koa responses.",
"main": "index.js",
"scripts": {
"test": "make test-all"
},
"config": {
"blanket": {
"pattern": "koa-gzip/index.js",
"data-cover-flags": {
"debug": false
}
},
"travis-cov": {
"threshold": 100
}
"test": "make test"
},
"dependencies": {
"thunkify-wrap": "0.0.3"
},
"devDependencies": {
"autod": "*",
"blanket": "*",
"contributors": "*",
"cov": "*",
"coveralls": "*",
"istanbul": "*",
"koa": "0.5.0",
"mm": "0.2.0",
"mocha": "*",
"mocha-lcov-reporter": "*",
"should": "3.1.3",
"supertest": "0.9.0",
"travis-cov": "*"
"supertest": "0.9.0"
},
"homepage": "https://github.com/fengmk2/koa-gzip",
"repository": {
Expand Down

0 comments on commit 9af6950

Please sign in to comment.