mirror of
https://github.com/nasa/openmct.git
synced 2025-01-29 15:43:52 +00:00
[Tests] Add jUnit reporter
Add jUnit reporter to allow CircleCI to store test results.
This commit is contained in:
parent
183bd9793c
commit
d9b2034550
@ -58,7 +58,7 @@ module.exports = function(config) {
|
|||||||
// Test results reporter to use
|
// Test results reporter to use
|
||||||
// Possible values: 'dots', 'progress'
|
// Possible values: 'dots', 'progress'
|
||||||
// Available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
// Available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||||
reporters: ['progress', 'coverage', 'html'],
|
reporters: ['progress', 'coverage', 'html', 'junit'],
|
||||||
|
|
||||||
// Web server port.
|
// Web server port.
|
||||||
port: 9876,
|
port: 9876,
|
||||||
@ -89,6 +89,10 @@ module.exports = function(config) {
|
|||||||
foldAll: false
|
foldAll: false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
junitReporter: {
|
||||||
|
outputDir: process.env.CIRCLE_TEST_REPORTS || 'target/junit',
|
||||||
|
},
|
||||||
|
|
||||||
// Continuous Integration mode.
|
// Continuous Integration mode.
|
||||||
// If true, Karma captures browsers, runs the tests and exits.
|
// If true, Karma captures browsers, runs the tests and exits.
|
||||||
singleRun: true
|
singleRun: true
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
"karma-coverage": "^0.5.3",
|
"karma-coverage": "^0.5.3",
|
||||||
"karma-html-reporter": "^0.2.7",
|
"karma-html-reporter": "^0.2.7",
|
||||||
"karma-jasmine": "^0.1.5",
|
"karma-jasmine": "^0.1.5",
|
||||||
|
"karma-junit-reporter": "^0.3.8",
|
||||||
"karma-phantomjs-launcher": "^1.0.0",
|
"karma-phantomjs-launcher": "^1.0.0",
|
||||||
"karma-requirejs": "^0.2.2",
|
"karma-requirejs": "^0.2.2",
|
||||||
"lodash": "^3.10.1",
|
"lodash": "^3.10.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user