karma-junit-reporter
karma-junit-reporter copied to clipboard
Add option to write separate xml file for each testcase
Instead of having all results in one junit.xml file, there needs to be an option to produce a separate file per testcase.
This would allow tools like jenkins to separate the test logging output on a per testcase basis. Combined with #2, you would get log output that actually maps to each testcase on each browser.
How "testcase" maps to particular structures would be based on how each test framework reports "testcases".
Separating per browser sounds ok to me, but I'm not sure about this. The junit xml format is designed to contain multiple suites.
Check out the output on AngularCI server, I think that's pretty much what you want (Jenkins only shows 3 levels anyway) http://ci.angularjs.org/job/angular.js-vojta/387/testReport/
I just remember it was a lot of fiddling to actually get Jenkins show something reasonable. I think we should improve the way Jenkins displays this xml data...
This is the same problem as #2. Specifically for the console logging capturing, the JUnit xsd has only one tag for "system-out" per file. To associate output reliably with one test suite, you need to further split files.
I'm just saying there should be an option.
Jenkins reporting: Opened #4.
Still not buying this ;-) But we can make it configurable, that's not gonna hurt anything....
On Fri, Mar 29, 2013 at 10:57 AM, Liam Newman [email protected]:
This is the same problem as #2https://github.com/karma-runner/karma-junit-reporter/issues/2. Specifically for the console logging capturing, the JUnit xsd has only one tag for "system-out" per file. To associate output reliably with one test suite, you need to further split files.
I'm just saying there should be an option.
— Reply to this email directly or view it on GitHubhttps://github.com/karma-runner/karma-junit-reporter/issues/3#issuecomment-15652475 .
When using the JUnitReport Task from ant, it is currently not possible to integrate the Karma test results without post processing the generated xml file.
So an option which splits up the files for every testcase would be very appreciated.