diff --git a/karma.conf.js b/karma.conf.js index e63b6712ef..d4abaf1e93 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -58,7 +58,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', 'html'], + reporters: ['progress', 'coverage', 'html', 'junit'], // Web server port. port: 9876, @@ -89,6 +89,10 @@ module.exports = function(config) { foldAll: false }, + junitReporter: { + outputDir: process.env.CIRCLE_TEST_REPORTS || 'target/junit', + }, + // Continuous Integration mode. // If true, Karma captures browsers, runs the tests and exits. singleRun: true diff --git a/package.json b/package.json index e93587bc49..c88861d0b0 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "karma-coverage": "^0.5.3", "karma-html-reporter": "^0.2.7", "karma-jasmine": "^0.1.5", + "karma-junit-reporter": "^0.3.8", "karma-phantomjs-launcher": "^1.0.0", "karma-requirejs": "^0.2.2", "lodash": "^3.10.1",