I have a little pet project in Python for which I want do do coverage reports. When I run
py.test -x -s MYPACKAGE --cov-report html --cov MYPACKAGE
It shows me a significant amount of lines missing from coverage. Mainly these are imports and class/method definitions.
I am certain that all these lines are processed in my unit tests, and the lines 19 and 31-35 verify that.
Why does py.test
mark all the definitions as "missing"?