print python coverage results to console#331
Conversation
Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #331 +/- ##
=======================================
Coverage 79.62% 79.62%
=======================================
Files 55 55
Lines 3210 3210
Branches 534 534
=======================================
Hits 2556 2556
Misses 607 607
Partials 47 47
Continue to review full report at Codecov.
|
I think the current state is a good default behavior. |
|
Thanks for the contribution. |
|
@mikaelarguedas Having used this change in my daily workflow since it was merged I am not so sure anymore that enabling the output by default is such a good idea. Multiple times I ran specific tests in a package to iterate on the test result and the printed coverage information was kind of in the way. Also there was no way to avoid it being printed either. So I am leaning towards removing the default again and instead providing a different way for users to opt-in to this (actually it should already be possible to pass |
This reverts commit 4ff2203.
Oh interesting. All the python packages I've been testing did not declare an explicit dependency on
That's fine by me, as long as there is an easy way to see coverage improvement locally. Yes it can be done using |
Indeed, I ran into this with e.g. Line 55 in 52f3893 |
Related to colcon/colcon-mixin-repository#21
no print to stderr
Example output in stdout:
It can be less verbose by not printing all files 100% covered. It can also be made more verbose by printing line numbers of lines not covered