Bug 1415309
Summary: | jUnit xml results not jenkins compatible | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | John Bieren <jbieren> |
Component: | tests | Assignee: | Dan Callaghan <dcallagh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | bpeck, dcallagh, jburke, mjia, rjoost |
Target Milestone: | 24.2 | Keywords: | Patch |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-03-30 03:23:08 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
John Bieren
2017-01-20 20:31:07 UTC
WIP https://gerrit.beaker-project.org/#/c/5607/ May need to update test cases. (In reply to John Bieren from comment #1) > As you can see, lines such as > <testcase classname="/distribution/install"> > have no name= field, only a classname= > This causes the jenkins xunit publisher plugin to fail. Also, > because that same testcase has no error message, despite the beaker job in > the UI clearly showing that that task failed, that testcase will report as a > success by xUnit parsers, which is incorrect. Just for future reference... That first <testcase/> element without any name="" attribute represents the overall task (and then the subsequent <testcase/> elements are for each result in the task). The only reason we have it is so that we have a place to put the task logs. Otherwise we could just skip it and only report back the individual results, which would actually be closer to the JUnit model. (In reply to Bill Peck from comment #2) Thanks for the patch, Bill! It looks fine to me. To summarize, the changes are: * it now always has skipped="", failures="", and errors="" attributes * skipped tests are counted in the overall total * the <testcase/> element representing the overall task result now has name="(main)" and contains <failure/> or <error/> if it was Fail or Aborted Hi Dan, Your summary is correct. Should I rebase the patch against release-0.24? I used some Gerrit magic to take care of that. Bill, have you tried using the new JUnit XML output in Jenkins to confirm if it fixes the issues Johnny was hitting? I confirmed the output looked correctly by using Beaker in a Box but haven't imported it into jenkins yet. I'll do that Today. Bill, if you send me an example new JUnit XML output I can plug it into my jenkins test job and confirm it fixes it pretty easily. I already have a jenkins job set up for testing JUnit files. We'll have to do QE on the items before we can tag a release. Verified by looking at JUnit.xml view on my local Beaker instance 24.2.git.9.d4c983d from a job which ran. Used comment 4 as a comparison. Beaker 24.2 has been released. |