-
Notifications
You must be signed in to change notification settings - Fork 127
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
junitxml: include full output in system-out field #380
Comments
Hello, failing test output is captured under This seems to work for most CI systems. Do you have an example of a junit.xml file that isn't working? |
Ah thanks for this example I did not see it. I have exactly the same layout on my side. My problem is that Datadog CI system expects the standard output to be in Maybe I misunderstand the junit standard, but I thought that system-out and system-err were intended to have the standard output. Do you think we could have an option or change the gotestsum default behavior? Or should I look for an alternative? |
Unfortunately there is no real official standard. It seems every system does something a little different. There are a few flags to modify the output in the junit.xml to accomodate different systems
I think to accomplish what you describe here we'll need to wait for this Go proposal golang/go#62728 to be accepted and implemented. With that change we could add a flag to send only the It's possible to send everything to Issue #118 is also related I guess. It wasn't said explicitly in that issue, but I'm assuming they were expecting the full output in I'll re-title this issue to clarify the feature request. |
Looking at https://github.com/windyroad/JUnit-Schema/blob/cfa434d4b8e102a8f55b8727b552a0063ee9044e/JUnit.xsd#L150 I'm still a bit confused about how this is supposed to work. That Does Datadog CI publish the schema they expect? |
I just noticed that https://github.com/testmoapp/junitxml does actually show it as both a sibling and a child. So I guess that's where it comes from. |
@dnephin sorry for the latency, I wanted to circle back with a few Datadog folks and do more tests. |
Unless I am mistaken, junit supports having
system-out
undertestcase
, to capture a failing test standard output. Unfortunately, this does not seem to be supported by this tool. Is there any plan to do so? It would allow feeding other products like Datadog CI visibility for instance.The text was updated successfully, but these errors were encountered: