From: Gustavo Martin Morcuende Date: Sun, 16 Aug 2015 21:21:00 +0000 (+0200) Subject: showcase: enable reporters and preprocessors for coverage reports X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=5993ea32d1959e6e5a2124129ea0da05e51a5163;p=JavaScriptForFun showcase: enable reporters and preprocessors for coverage reports --- diff --git a/angularjs/showcase/karma.conf.js b/angularjs/showcase/karma.conf.js index 76cfe29..45b43e6 100644 --- a/angularjs/showcase/karma.conf.js +++ b/angularjs/showcase/karma.conf.js @@ -63,6 +63,9 @@ module.exports = function(config) { 'karma-junit-reporter' ], + // command line argument override the configuration from the config file + reporters: ['progress', 'junit', 'coverage'], + junitReporter: { // results will be saved as $outputDir/$browserName.xml outputDir: 'test-tmp', @@ -72,6 +75,10 @@ module.exports = function(config) { // suite: '' }, + preprocessors: { + 'app/**/*.js': ['coverage'] + }, + coverageReporter: { // specify a common output directory dir: 'test-tmp/coverage',