karma-junit-reporter icon indicating copy to clipboard operation
karma-junit-reporter copied to clipboard

Add option to write separate xml file for each browser

Open bitwiseman opened this issue 12 years ago • 3 comments

Instead of having all results in one junit.xml file, there needs to be an option to produce a separate file per browser.

This would allow tools like jenkins to separate the test logging output on a per browser basis.

bitwiseman avatar Mar 28 '13 17:03 bitwiseman

It already does, check out Angular CI server http://ci.angularjs.org/job/angular.js-vojta/387/testReport/ - would you get better formatting in Jenkins, if you output it into multiple files ?

Otherwise I'm all for it...

vojtajina avatar Mar 29 '13 08:03 vojtajina

Specifically for the console logging capture. If you look at the JUnit xsd, there is only one tag for "system-out" per file. To associate output with one browser when you run multiple browsers at the same time, you need to parse/filter the output or (more simply) produce one file per browser.

bitwiseman avatar Mar 29 '13 17:03 bitwiseman

Yep, I'm cool with producing file per browser as default behavior...

On Fri, Mar 29, 2013 at 10:53 AM, Liam Newman [email protected]:

Specifically for the console logging capture. If you look at the JUnit xsd, there is only one tag for "system-out" per file. To associate output with one browser when you run multiple browsers at the same time, you need to parse/filter the output or (more simply) produce one file per browser.

— Reply to this email directly or view it on GitHubhttps://github.com/karma-runner/karma-junit-reporter/issues/2#issuecomment-15652279 .

vojtajina avatar Mar 29 '13 20:03 vojtajina