Skip to content
This repository was archived by the owner on Feb 25, 2019. It is now read-only.

Commit bbac317

Browse files
Merge pull request #270 from henrjk/coverage
adding basic coverage for istanbul
2 parents ab4ad29 + 74ba22b commit bbac317

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

coverage.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
NODE_ENV=test ./node_modules/.bin/istanbul cover node_modules/.bin/_mocha --dir ./coverage/integration -- --timeout 0 --compilers coffee:coffee-script/register test/integration/
6+
NODE_ENV=test ./node_modules/.bin/istanbul cover node_modules/.bin/_mocha --dir ./coverage/unit -- --timeout 0 --compilers coffee:coffee-script/register test/unit/
7+
./node_modules/.bin/istanbul report --root coverage/ --dir coverage/

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"faker": "^3.0.0",
8787
"grunt": "^0.4.5",
8888
"grunt-release": "^0.13.0",
89+
"istanbul": "^0.4.0",
8990
"mocha": "^2.3.2",
9091
"nock": "^2.2.0",
9192
"sinon": "^1.15.1",

0 commit comments

Comments
 (0)