Code coverage plugin for Bender.js
npm install benderjs-coveragebender run mode and for bender jobs.
npm install benderjs-coverage
`
Usage
Add benderjs-coverage to the plugins array in your bender.js configuration file:
`js
var config = {
applications: {...}
browsers: [...],
plugins: ['benderjs-jasmine', 'benderjs-coverage'], // load the plugin
tests: {...}
};
module.exports = config;
`
Add the coverage plugin configuration:
`js
var config = {
applications: {...},
// add your plugin configuration
coverage: {
paths: [
'lib/*/.js'
]
},
browsers: [...],
plugins: ['benderjs-jasmine', 'benderjs-coverage'], // load the plugin
tests: {...}
};
module.exports = config;
`
Configuration options
$3
(Required)
An array of file path matchers used to mark which files should be preprocessed by this plugin.
It uses globstar matching using minimatch.
$3
(Optional)
Default: coverage/
A path to the directory where the coverage reports for bender run` command will be put.