Created
August 16, 2014 08:07
-
-
Save FredKSchott/38fcbfd875e1474da1a1 to your computer and use it in GitHub Desktop.
Getting Code Coverage with Istanbul - ShellJS Recipes - http://shelljs-recipes.tumblr.com/
This file contains 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
// Dependencies: istanbul, mocha (can substitute with any testing library) | |
echo('Running Tests & Generating Code Coverage'); | |
exec('node ./node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- --recursive ' + TEST_DIR); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment