Skip to content

Commit 930b5ec

Browse files
author
Ruben Bridgewater
committed
Add istanbul; update dependencies; add coverage posttest
1 parent 28b2f06 commit 930b5ec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "mocha",
8+
"posttest": "npm run coverage && npm run coverage:check",
9+
"coverage": "node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec",
10+
"coverage:check": "node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100",
811
"build": "node tools/build"
912
},
1013
"repository": {
@@ -24,8 +27,9 @@
2427
"homepage": "https://github.com/NodeRedis/redis-commonds",
2528
"devDependencies": {
2629
"chai": "^3.4.0",
27-
"ioredis": "^1.0.8",
30+
"ioredis": "^2.0.0-rc2",
2831
"json-stable-stringify": "^1.0.0",
29-
"mocha": "^2.2.1"
32+
"mocha": "^2.2.1",
33+
"istanbul": "^0.4.3"
3034
}
3135
}

0 commit comments

Comments
 (0)