You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
566 B
29 lines
566 B
// Karma coverage configuration
|
|
|
|
module.exports = function(config) {
|
|
var baseConfig = require('../config/karma.conf');
|
|
|
|
baseConfig(config);
|
|
|
|
config.set({
|
|
preprocessors: {
|
|
'app/scripts/**/*.js': ['coverage']
|
|
},
|
|
|
|
reporters: ['coverage'],
|
|
|
|
coverageReporter: {
|
|
reporters: [
|
|
{
|
|
type: 'text'
|
|
}, {
|
|
type: 'lcov',
|
|
dir: 'test/results/coverage',
|
|
subdir: function(browserName) {
|
|
return browserName.toLowerCase().split(/[\s/-]/)[0];
|
|
}
|
|
}
|
|
]
|
|
}
|
|
});
|
|
};
|