Skip to content

Commit

Permalink
Using the karma junit reporter plugin to write junit results to karma…
Browse files Browse the repository at this point in the history
… build folder.
  • Loading branch information
Michael Sommer committed Jul 24, 2014
1 parent e133c62 commit 6b07d08
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lib/karmaServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ function KarmaServer(karmaPath, options) {
],
proxies: options.proxies || {},
preprocessors: options.preprocessors || {},
reporters: ["dots"],
reporters: ["dots", "junit"],
junitReporter: {
outputFile: 'test-results.xml',
suite: ''
},
colors: true,
autoWatch: false,
browsers: options.browsers || [],
Expand All @@ -28,7 +32,8 @@ function KarmaServer(karmaPath, options) {
"karma-chrome-launcher",
"karma-firefox-launcher",
"karma-phantomjs-launcher",
"karma-ie-launcher"
"karma-ie-launcher",
"karma-junit-reporter"
].concat(options.plugins || [])
};

Expand Down

0 comments on commit 6b07d08

Please sign in to comment.