-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for subresults (experimental flavor) to junit report plugin #3177
base: main
Are you sure you want to change the base?
Conversation
4eef028
to
a42e26a
Compare
cb88347
to
5d44aca
Compare
0ac068f
to
81b54df
Compare
5d44aca
to
83264f1
Compare
81b54df
to
7ee6f13
Compare
83264f1
to
99b39e1
Compare
0d2969b
to
8554165
Compare
99b39e1
to
de70903
Compare
@kkaarreell Hello,
This basically means if there are The example of the currently generated JUnit
Any hints / ideas? |
Maybe we could always include at least one testcase, representing the test itself? |
Hi @seberm , |
222008f
to
9ee1638
Compare
de70903
to
789e4ea
Compare
9ee1638
to
e613189
Compare
789e4ea
to
c680853
Compare
Yeah, I had the same idea - I did the modifications. The output is now:
And now we need to test against the various systems/scripts which would be using this flavor. E.g. ReportPortal. |
I am sorry but this seems like introducing yet another jUnit format. What tools are expected to work such a XML file? Why not introducing new report plugin for it? |
You’re basically right. It is another JUnit format. That’s why it’s implemented as an optional template/flavor (see #3150 for more info). The challenge is that different systems (GitLab, Jenkins, ReportPortal, Polarion) support slightly different variants of JUnit formats. While these formats are largely similar, there are small differences. The current JUnit report plugin only supports a single, non-customizable JUnit "default" flavor. The changes in #3150 introduce support for The motivation for this PR is that we plan to add support for tmt subresults and we need to have (based on requirements from Jira ticket) the ability to export subresults into the JUnit format. I don’t think we need to merge this and officially support the format, but we should at least ensure that generating this kind of JUnit file is possible. I'll reach out to the people from the Jira ticket and try to clarify their specific needs and ask them for testing. |
e613189
to
d8c650a
Compare
c680853
to
84c00c3
Compare
d8c650a
to
49a0604
Compare
c260ec0
to
844cf51
Compare
49a0604
to
597e000
Compare
597e000
to
38c9d87
Compare
Define an experimental junit flavor for subresults.
844cf51
to
6620d62
Compare
This PR adds a
subresults
junit report plugin flavor to show thetmt.result.SubResult
instances within thetmt.Result
. It tries to map thetmt.Result
to<testsuite>
andtmt.result.SubResult
to<testcase>
respectively.Discussion from 10.9. 2024:
For more info see:
Related to:
TODO:
classname
to define a parent test name andname
for a subresult test name - Add support for test phases #2826 (comment)Pull Request Checklist