Permalink
Browse files

use istanbul replace blanket. gotwarlost/istanbul#44

  • Loading branch information...
fengmk2 committed Mar 3, 2014
1 parent 8f941f2 commit 9af69507f28b575e5c2ad9ac5f51b684cd22f1fd
Showing with 11 additions and 33 deletions.
  1. +3 −1 .gitignore
  2. +2 −0 .npmignore
  3. +0 −1 .travis.yml
  4. +3 −13 Makefile
  5. +3 −18 package.json
@@ -12,4 +12,6 @@ logs
results

node_modules
npm-debug.log
npm-debug.log
.DS_Store
coverage/
@@ -3,3 +3,5 @@ coverage.html
Makefile
.travis.yml
logo.png
.DS_Store
coverage/
@@ -1,4 +1,3 @@
language: node_js
node_js:
- '0.11'
script: make test-coveralls
@@ -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
@@ -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": {

0 comments on commit 9af6950

Please sign in to comment.