You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the passed element is not in the JUnit XML schema. While that alone might a theoretical problem, it is also a practical problem, because some parsers, e.g., the TeamCity XML Reporting Plugin JUnit parser, conform to that schema, ignore the element, and show no output for passing tests.
The fix seems to be to use the system-out element instead. I have confirmed that, when using the system-out attribute, the TeamCity XML Reporting Plugin Junit parser shows output for a passing test.
(For anyone asking why the system-err element is not used: Ginkgo intercepts both stdout and stderr together, and the default reporter writes that output to stdout).
To be clear, I am not a JUnit expert, and I am looking for feedback. I assume the passed element was working for @manosnoam, who authored #586.
The text was updated successfully, but these errors were encountered:
Thanks for fixing it @dlipovetsky , indeed <system-out> should be used instead of <passed>.
Originally I added it, assuming it's the contra for <failed> tag, which is supported.
<passed> is not supported in other apps schemas that parses Junit, for example Polarion.
(in ReportPortal id did go through though).
In #586, the JUnit reporter was extended to capture the output of passing tests when the
-reportPassing
flag is used.For a passing test, the reporter writes:
However, the
passed
element is not in the JUnit XML schema. While that alone might a theoretical problem, it is also a practical problem, because some parsers, e.g., the TeamCity XML Reporting Plugin JUnit parser, conform to that schema, ignore the element, and show no output for passing tests.The fix seems to be to use the
system-out
element instead. I have confirmed that, when using thesystem-out
attribute, the TeamCity XML Reporting Plugin Junit parser shows output for a passing test.(For anyone asking why the
system-err
element is not used: Ginkgo intercepts both stdout and stderr together, and the default reporter writes that output to stdout).To be clear, I am not a JUnit expert, and I am looking for feedback. I assume the
passed
element was working for @manosnoam, who authored #586.The text was updated successfully, but these errors were encountered: