Skip to content

Commit

Permalink
use istanbul for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Oct 2, 2014
1 parent a27ba9f commit 5547b72
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 51 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ logs
results

node_modules
npm-debug.log
npm-debug.log
coverage
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ lib-cov/
Makefile
.travis.yml
logo.png
coverage/
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ language: node_js
node_js:
- '0.11'
- '0.10'
script: make test-coveralls
before_install:
- 'wget http://www.eu.apache.org/dist/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz'
- 'tar xf zookeeper-3.4.6.tar.gz'
- 'mv zookeeper-3.4.6/conf/zoo_sample.cfg zookeeper-3.4.6/conf/zoo.cfg'
- './zookeeper-3.4.6/bin/zkServer.sh start'
script: "npm run test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
29 changes: 0 additions & 29 deletions Makefile

This file was deleted.

34 changes: 14 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,24 @@
"description": "Extend node-zookeeper-client, let zookeeper client support `watch(path)` method.",
"main": "index.js",
"scripts": {
"test": "make test-all",
"blanket": {
"pattern": "//^((?!(node_modules|test)).)*$/",
"data-cover-flags": {
"debug": false
}
},
"travis-cov": {
"threshold": 94
}
"test": "mocha --check-leaks -R spec -t 10000 test/*.test.js",
"test-cov": "node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 10000 test/*.test.js",
"test-travis": "node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 10000 test/*.test.js",
"jshint": "jshint .",
"autod": "autod -w --prefix '~'",
"cnpm": "npm install --registry=https://registry.npm.taobao.org",
"contributors": "contributors -f plain -o AUTHORS"
},
"dependencies": {
"debug": ">=0.7.2",
"node-zookeeper-client": "0.2.0"
"debug": "~2.0.0",
"node-zookeeper-client": "~0.2.1"
},
"devDependencies": {
"interceptor": "*",
"should": "*",
"blanket": "*",
"travis-cov": "*",
"coveralls": "*",
"mocha-lcov-reporter": "*",
"pedding": "*",
"mocha": "*"
"interceptor": "~0.1.4",
"istanbul": "*",
"mocha": "*",
"pedding": "~1.0.0",
"should": "~4.0.4"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 5547b72

Please sign in to comment.