-
Notifications
You must be signed in to change notification settings - Fork 0
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
Print timing info on executed tests #27
Conversation
Codecov Report
@@ Coverage Diff @@
## main #27 +/- ##
===========================================
+ Coverage 52.35% 68.23% +15.87%
===========================================
Files 12 12
Lines 997 1001 +4
===========================================
+ Hits 522 683 +161
+ Misses 475 318 -157
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Nice!
reverse=True, | ||
) | ||
for tc in timing_info: | ||
print(f" {tc[1]:<{tlen}s}: {tc[0]:.1f}") |
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.
yea, that's right, it's (tc.elapsed_sec, tc.name)
(for sorting), but I here I print the name first and the duration on the right, like on the screenshot above.
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.
GREAT
In this PR:
- Pre-commit hook to lint stuff - Another +15% to codecov with a simple test!