Skip to content
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 reading stdout/stderr for each test case #27

Merged
merged 3 commits into from
Oct 1, 2019

Conversation

rwbergstrom
Copy link
Contributor

If tests fail, there's frequently additional info the system-out and system-err tags for each test case (at least with surefire test reports). The existing code captures suite-wide stdout/stderr, but misses the per-test-case variant.

This just duplicates the logic in order to capture per-test output as well.

@joshdk joshdk self-requested a review September 28, 2019 05:54
Copy link
Owner

@joshdk joshdk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @rwbergstrom! 🎉

Left some very minor comments, and will be happy to merge afterwards.

Additionally, you mentioned that go-junit was missing properties from your surefire test reports. I went and created #28, as I suspect that this isn't a unique class of problem. Would you mind linking your test XML there? Just so I can collect some real-world examples (that will eventually make their way into a Go test).

Cheers!

ingest_test.go Show resolved Hide resolved
types.go Outdated Show resolved Hide resolved
Copy link
Owner

@joshdk joshdk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@joshdk joshdk merged commit e7a601d into joshdk:master Oct 1, 2019
thecapdan pushed a commit to thecapdan/go-junit that referenced this pull request Dec 28, 2020
thecapdan pushed a commit to thecapdan/go-junit that referenced this pull request Dec 28, 2020
goddenrich pushed a commit to goddenrich/go-junit that referenced this pull request Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants