0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 20:43:52 +01:00

Update karma.conf.js to A: actually run the tests, and B: generate JUnit XML.

This commit is contained in:
Kegan Dougal 2014-11-04 14:01:25 +00:00
parent f7cf978f68
commit 29b54d6638

View file

@ -23,6 +23,8 @@ module.exports = function(config) {
'../js/angular-animate.js', '../js/angular-animate.js',
'../js/angular-sanitize.js', '../js/angular-sanitize.js',
'../js/ng-infinite-scroll-matrix.js', '../js/ng-infinite-scroll-matrix.js',
'../js/ui-bootstrap*',
'../js/elastic.js',
'../login/**/*.*', '../login/**/*.*',
'../room/**/*.*', '../room/**/*.*',
'../components/**/*.*', '../components/**/*.*',
@ -35,6 +37,11 @@ module.exports = function(config) {
'./unit/**/*.js' './unit/**/*.js'
], ],
plugins: [
'karma-*',
require('./node_modules/karma-junit-reporter')
],
// list of files to exclude // list of files to exclude
exclude: [ exclude: [
@ -50,8 +57,11 @@ 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'], reporters: ['progress', 'junit'],
junitReporter: {
outputFile: 'test-results.xml',
suite: ''
},
// web server port // web server port
port: 9876, port: 9876,
@ -77,6 +87,6 @@ module.exports = function(config) {
// 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: false singleRun: true
}); });
}; };