Skip to content

Grunt task to parse your source code and generate an instrumented version allowing testing tools to generate code coverage reports

Notifications You must be signed in to change notification settings

Hexmedia/grunt-jscover

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-jscover

Grunt task for jscover; which will parse your source code and generate an instrumented version allowing testing tools to generate code coverage reports.

This is a fork of grunt-jscoverage which uses JSCover instead of node-jscoverage.

Installation

Install npm package

npm install grunt-jscover --save-dev

Add this line to your project's Gruntfile.js:

grunt.loadNpmTasks("grunt-jscover");

Usage

note: this task will delete the contents of the output-directory; if one exists; before attempting to parse source.

grunt.initConfig({
  jscover: {
    lib: { 
      src: ['lib'],
      dest: ['lib-cov']
    },
    src: {
      src: ['src'],
      dest: ['src-cov']
    }
  }
});

Run

grunt jscover

About

Grunt task to parse your source code and generate an instrumented version allowing testing tools to generate code coverage reports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%