Skip to content

Instantly share code, notes, and snippets.

@FredKSchott
Created August 16, 2014 08:07
Show Gist options
  • Save FredKSchott/38fcbfd875e1474da1a1 to your computer and use it in GitHub Desktop.
Save FredKSchott/38fcbfd875e1474da1a1 to your computer and use it in GitHub Desktop.
Getting Code Coverage with Istanbul - ShellJS Recipes - http://shelljs-recipes.tumblr.com/
// 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