From 65c0cc66b642b084d9dbec90f4cfa2034f603eac Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 8 Jan 2016 12:57:19 -0800 Subject: [PATCH] [API Refactor] Add HTML reporting Write HTML reports of test successes/failures to simplify handling of test failures; pre-existing HTML test runner is incompatible with changes to the way bundles are loaded. --- karma.conf.js | 7 ++++++- package.json | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index 9e2204af26..1547f1991f 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -55,7 +55,7 @@ module.exports = function(config) { // Test results reporter to use // Possible values: 'dots', 'progress' // Available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ['progress', 'coverage'], + reporters: ['progress', 'coverage', 'html'], // Web server port. port: 9876, @@ -79,6 +79,11 @@ module.exports = function(config) { dir: "target/coverage" }, + // HTML test reporting. + htmlReporter: { + outputDir: "target/tests" + }, + // Continuous Integration mode. // If true, Karma captures browsers, runs the tests and exits. singleRun: true diff --git a/package.json b/package.json index 4a0523aa18..6e16fa72a7 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "karma-chrome-launcher": "^0.1.8", "karma-cli": "0.0.4", "karma-coverage": "^0.5.3", + "karma-html-reporter": "^0.2.7", "karma-jasmine": "^0.1.5", "karma-phantomjs-launcher": "^0.1.4", "karma-requirejs": "^0.2.2",