Fix: coverage configuration

This commit is contained in:
2015-09-11 08:50:10 +00:00
parent d5103f7719
commit e68f747179
6 changed files with 7 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ module.exports = function(config) {
'public/libs/angular-mocks/angular-mocks.js',
'public/js/**/*.js',
'public/**/*.controller.js',
'test/**/*.controller.js'
'test/**/*.spec.js'
],
@@ -29,21 +29,25 @@ module.exports = function(config) {
exclude: [
],
plugins: ['karma-jasmine', 'karma-mocha', 'karma-chai', 'karma-phantomjs-launcher', 'karma-coverage'],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'public/js/**/*.js': ['coverage'],
'public/**/*.controller.js': ['coverage'],
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress', 'coverage', 'coveralls'],
reporters: ['progress', 'coverage'],
coverageReporter: {
type: 'lcov', // lcov or lcovonly are required for generating lcov.info files
dir: 'coverage/'
dir: 'coverage',
subdir: '.' // Output the results into ./coverage/
},
// web server port

View File

@@ -23,7 +23,6 @@
"karma": "^0.13.9",
"karma-chai": "^0.1.0",
"karma-coverage": "^0.5.2",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "^0.3.6",
"karma-mocha": "^0.2.0",
"karma-phantomjs-launcher": "^0.2.1",