From 81a834ac57d152267228a6510666a8992dbceb81 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 16 Aug 2015 23:03:23 +0200 Subject: [PATCH] showcase: karma.conf.js code coverages reports --- angularjs/showcase/karma.conf.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/angularjs/showcase/karma.conf.js b/angularjs/showcase/karma.conf.js index 4daaac8..76cfe29 100644 --- a/angularjs/showcase/karma.conf.js +++ b/angularjs/showcase/karma.conf.js @@ -72,6 +72,23 @@ module.exports = function(config) { // suite: '' }, + coverageReporter: { + // specify a common output directory + dir: 'test-tmp/coverage', + reporters: [ + // reporters not supporting the `file` property + { type: 'html', subdir: 'report-html' }, + { type: 'lcov', subdir: 'report-lcov' }, + // reporters supporting the `file` property, use `subdir` to directly + // output them in the `dir` directory + { type: 'cobertura', subdir: '.', file: 'cobertura.txt' }, + { type: 'lcovonly', subdir: '.', file: 'report-lcovonly.txt' }, + { type: 'teamcity', subdir: '.', file: 'teamcity.txt' }, + { type: 'text', subdir: '.', file: 'text.txt' }, + { type: 'text-summary', subdir: '.', file: 'text-summary.txt' }, + ] + }, + // Continuous Integration mode // if true, it capture browsers, run tests and exit singleRun: false, -- 2.1.4