From 5993ea32d1959e6e5a2124129ea0da05e51a5163 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 16 Aug 2015 23:21:00 +0200 Subject: [PATCH] showcase: enable reporters and preprocessors for coverage reports --- angularjs/showcase/karma.conf.js | 7 +++++++ 1 file changed, 7 insertions(+) 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', -- 2.1.4