gotestsum icon indicating copy to clipboard operation
gotestsum copied to clipboard

Added flag to always include output in junit reports

Open alexxed opened this issue 2 years ago • 3 comments

fixes #118

alexxed avatar Apr 25 '23 11:04 alexxed

I've tested this change in my Jenkins environment and can confirm it works as expected. It would be awesome if this could make it into a release 🚀

ethan-gallant avatar May 03 '23 19:05 ethan-gallant

I'll get back to this eventually to address the feedback, meanwhile I pushed small change to address reruns problems. Currently if there is a rerun that passes, junit report will include both fail and pass, and tools that read that (e.g. Jenkins) will sum those up and consider the test failed.

alexxed avatar Jun 01 '23 06:06 alexxed

Does anyone have an example of the schema that puts system-out under test-case ? If I look at all the top hits on google (https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd, https://github.com/testmoapp/junitxml, https://stackoverflow.com/a/9410271/444646) they put system-out as a sibling to test-case, which does not match the implementation in this PR.

dnephin avatar Nov 04 '23 17:11 dnephin