Grunt task for jscoverage; which will parse your source code and generate an instrumented version allowing testing tools to generate code coverage reports.
Install npm package
npm install grunt-jscoverage --save-dev
Add this line to your project's Gruntfile:
See Grunt docs for detailed explanation.
Options will be passed to jscoverage as is. Unfortunately, jscoverage doesn't provide any documentation about its programmatic API, so take a look at function
processFile() in its file
index.js for details.