From c367ddde79e42f4e7d2dfc9db04ab44cb6aeec59 Mon Sep 17 00:00:00 2001
From: Jaden Diefenbaugh <jaden.diefenbaugh@idiap.ch>
Date: Fri, 20 Oct 2017 17:04:16 +0200
Subject: [PATCH] add all types of coverage

---
 .gitignore    |  2 ++
 karma.conf.js | 18 +++++++++++++++---
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index 1e7179de..6a91bccc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -70,3 +70,5 @@ dist/
 styleguide/
 
 flow-typed/
+
+coverage/
diff --git a/karma.conf.js b/karma.conf.js
index 22a1e599..f72c42f5 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -28,13 +28,25 @@ module.exports = function (config) {
 		},
 		reporters: [
 			'mocha',
+			'progress',
 			'coverage'
 		],
 
-		// optionally, configure the reporter
 		coverageReporter: {
-			type : 'text',
-			//dir : 'coverage/'
+			// specify a common output directory
+			dir: './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' },
+			]
 		},
 
 		// use the webpack config
-- 
GitLab