Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add option to write separate xml file for each testcase #3

Open
bitwiseman opened this Issue Mar 28, 2013 · 4 comments

Comments

Projects
None yet
3 participants

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".

Contributor

vojtajina commented Mar 29, 2013

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.

Contributor

vojtajina commented Mar 29, 2013

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 notifications@github.comwrote:

This is the same problem as #2#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
.

mcico commented Nov 19, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment