Created
February 1, 2016 14:25
-
-
Save nkint/ce08c57d97631da514bf to your computer and use it in GitHub Desktop.
node.js test coverage with istanbul nom script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "test coverage example", | |
... | |
"scripts": { | |
"test": "NODE_ENV=test mocha --colors build/spec --timeout 5000", | |
"coverage": "NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -R spec" | |
}, | |
"dependencies": { | |
... | |
}, | |
"devDependencies": { | |
"chai": "^3.4.1", | |
"istanbul": "^0.4.2", | |
"mocha": "^2.3.4", | |
"sinon": "^1.17.2", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment