Skip to content

Commit 385d742

Browse files
committed
Merge pull request #163 from willmendesneto/willmendesneto/add-code-coverage-in-tests
Add code coverage in test suit
2 parents 2ba327a + a0f9944 commit 385d742

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ node_modules
1818
npm-debug.log
1919

2020
working/
21+
coverage/

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"scripts": {
2121
"pretest": "npm install && npm run lint",
22-
"test": "NODE_ENV=test mocha --reporter dot && NODE_ENV=test node_modules/coffee-script/bin/coffee ./test/run.coffee",
22+
"test": "NODE_ENV=test istanbul cover _mocha -- --reporter dot && NODE_ENV=test node_modules/coffee-script/bin/coffee ./test/run.coffee",
2323
"lint": "node_modules/eslint/bin/eslint.js ."
2424
},
2525
"engines": {
@@ -37,6 +37,7 @@
3737
"eslint": "1.10.3",
3838
"express": "*",
3939
"glob": "~3.1.13",
40+
"istanbul": "^0.4.3",
4041
"koa": "*",
4142
"mocha": "*",
4243
"mock-udp": "*",

0 commit comments

Comments
 (0)