-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 captured log msgs to junit xml file #3156
Conversation
1ec8860
to
b6bb49a
Compare
Thanks @Thisch, looks good so far. I think we should have an option to control that though, I can imagine use cases where users don't want their JUnitXML files to contain logging information, or want their logging to be directed to stderr instead. How about an |
b6bb49a
to
2e6ffbb
Compare
@nicoddemus, yes, adding an ini flag makes sense. I don't know why one would want to write the captured logs to the |
For each test this adds the captured log msgs to a system-* tag in the junit xml output file. The destination of the system-* tag is specified by junit_logging ini option.
2e6ffbb
to
c0ef4a4
Compare
@KKoukiou, what do you think? |
@Thisch I definitely find it useful. Do you think it might worth to add option about captured log level as well? With my custom fixture for capturing logs, I end up in |
We already have the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @Thisch!
@Thisch right, thanks :) |
Thanks again @Thisch! |
For each tests this adds the captured log msgs to the respective
'system-out' tags in the junit xml output file.
Thanks for submitting a PR, your contribution is really appreciated!
Here's a quick checklist that should be present in PRs:
$issue_id.$type
for example (588.bugfix)removal
,feature
,bugfix
,vendor
,doc
ortrivial
bugfix
,vendor
,doc
ortrivial
fixes, targetmaster
; for removals or features targetfeatures
;Unless your change is a trivial or a documentation fix (e.g., a typo or reword of a small section) please:
AUTHORS
, in alphabetical order;