coverage.py says 98 percent but I know branches aren't tested
coverage 7.4, pytest-cov 4.1. The report shows 98% but looking at the HTML report, big if blocks show as covered even though only the true branch ever ran. I thought branch coverage was on. My .coveragerc has [run] branch = True but I invoke pytest --cov=mypkg — does that actually read .coveragerc? Something clearly isn't wired up the way I assumed.
4 replies