npm install grunt-template-jasmine-istanbul --save-dev
Type: String
Mandatory.
The file path where to store the coverage.json.
Type: String
Mandatory.
The directory path where to store the coverage report.
Type: String Object
Default: jasmine's default template
The template to mix-in coverage.
Type: Object
Default: undefined
The options to pass to the mixed-in template.
Have a look at this example.
// Example configuration
grunt.initConfig({
jasmine: {
coverage: ['src/main/js/*.js'],
options: {
specs: ['src/test/js/*.js'],
template: require('grunt-template-jasmine-istanbul'),
templateOptions: {
coverage: 'bin/coverage/coverage.json',
report: 'bin/coverage',
}
}
}
}