I am an OSS package owner and I’m trying to use codecov to understand my unit-tests (Python w/ Pytest) gaps. I’ve had codecov configured for a while, but didn’t pay enough attention to it until recently when I’m trying to improve my automated regression.
I noticed that even though I have a unit-test for an asyncio simple function (example below). I would still get missed for the function body, even though I’m certain the unit test covers the flow.
I’m using GitHub & Travis, and Python 3.9 w/ latest pytest. I compared master and various branches and the results are similar.
Here is how it looks like. As you can see the function is hit and appears in Green, though the content appears in Red. I don’t quite understand how to interpret these results. I went thru the documentation and couldn’t figure this either:
Thanks in advance!