Closed njsmith closed 6 years ago
I cannot figure out why the coverage here is so messed up. We're using exactly the same scripts as trio. Yet for some reason it looks like the coverage gathering is only getting turned on after we import the module, so all the lines that are executed on import show up as being not-covered.
AHHHH hahaha I figured it out.
We use pytest-asyncio
as a convenient way to run async functions.
pytest-asyncio
at some point... started using this library! So if pytest happens to load the pytest-asyncio
plugin before it loads the pytest-cov
plugin, then we get imported then too.
Also it's kind of bad if our testing infrastructure indirectly depends on the code-under-test, we should probably fix that anyway.
Codecov Report
100% <ø> (ø)
100% <100%> (ø)
100% <100%> (ø)
100% <100%> (+100%)
100% <100%> (ø)
100% <100%> (ø)
100% <100%> (ø)
Continue to review full report at Codecov.