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

Replace item.add_report_section() with long_repr.addsection() #56

Closed
wants to merge 1 commit into from

Conversation

KKoukiou
Copy link

Commit cfedc4 does the reverse change and introduces the following bug.
When used together with pytest junitxml option, the XML report does not
contain the captured log output, since junit-xml does not know about
the 'log' section.

I am not happy to post this change but this exact change was the one that broke
the logs of junitxml in first place. Please let me know what you think, or if you
can propose some other solution to this problem.

PR #39 addresses the same
issue so if you 're more comfortable with that I can rebase it and resend it.

Commit cfedc4 does the reverse change and introduces the follwing bug.
When used together with pytest junitxml plugin, the XML report does not
contain the captured log output, since junit-xml does not know about
the 'log' section.

Also, with this change when a test fails we will see the logs only from the
method that caused the failure, which means if a test failed in teardown
phase we will not see logs from setup and call phases.
@KKoukiou
Copy link
Author

Build failed due to travis-ci currently been broken for pypy3

@KKoukiou
Copy link
Author

@eisensheng Could you please CR this PR or tell me to rebase PR #39 ? We really need a fix for this issue asap.
Thanks!

@twmr
Copy link

twmr commented Feb 8, 2018

@KKoukiou given that we merged pytest-dev/pytest#3156 into pytest, I guess that we can close this PR now, right?

@KKoukiou
Copy link
Author

KKoukiou commented Feb 9, 2018

@Thisch I am closing, it's not relevant anymore. Thanks!

@KKoukiou KKoukiou closed this Feb 9, 2018
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.

2 participants