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

Commit

Permalink
added coverage reporter to mocha npm coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
joernroeder committed Jul 21, 2014
1 parent 0a61206 commit 172c9b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -4,3 +4,5 @@ test.sh
test.js
nohup.out
out.txt

/coverage.html
14 changes: 11 additions & 3 deletions package.json
Expand Up @@ -20,15 +20,23 @@
"url": "git://github.com/bcoe/sandcastle.git"
},
"scripts": {
"test": "./node_modules/.bin/mocha test/* --reporter spec --colors --timeout=5000"
"coverage": "./node_modules/.bin/mocha test/* --require blanket --colors --timeout=10000 -R html-cov > coverage.html",
"test": "./node_modules/.bin/mocha test/* --require blanket --colors --timeout=10000 -R spec"
},
"config": {
"blanket": {
"pattern": "//lib//",
"data-cover-never": "node_modules"
}
},
"dependencies": {
"bufferstream": ">=0.6.x",
"clone": "git://github.com/bcoe/node-clone#prototype-option",
"optimist": "0.3.4",
"underscore": ">=1.4.2",
"clone": "git://github.com/bcoe/node-clone#prototype-option"
"underscore": ">=1.4.2"
},
"devDependencies": {
"blanket": "^1.1.6",
"mocha": ">= 1.7.x"
}
}

0 comments on commit 172c9b9

Please sign in to comment.