-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Allow any test attribute to be logged #1600
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1600 +/- ##
==========================================
+ Coverage 87.81% 87.84% +0.02%
==========================================
Files 44 44
Lines 7241 7267 +26
==========================================
+ Hits 6359 6384 +25
- Misses 882 883 +1
Continue to review full report at Codecov.
|
vkarak
left a comment
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.
The documentation must also be updated.
- Remove the `log_extra` attribute. This is not needed, because if an attribute does not exist, it will be simply logged as `None`. So users can introduce any check attribute as a format specifier. - Add unit tests
- As well as format `None` and errors in a human-readable manner.
ekouts
left a comment
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.
lgtm
|
lgtm |
EDIT: @vkarak
This PR adds the ability to log any test attribute. If the attribute cannot be found,
<undefined>will be logged instead. If an attribute is deferrable it will be evaluated and if this is not possible<error>will be logged.Fixes #1068.
Fixes #1432.