Posts Tagged: coverage.py
-
coverage.py: Why Your Coverage Report Shows 100% But Critical Paths Are Untested
Uncover why coverage.py reports 100% line coverage while missing critical branches in if/else and loops. Enable branch coverage, integrate with pytest/tox, use pragmas, generate HTML reports, and review benchmarks.
-
pytest-cov: Excluding Virtual Environment and Migration Files from Coverage Reports
Configure .coveragerc to omit virtual environments (venv, .tox), migrations, and other non-source files from pytest-cov reports, focusing on application code. Includes configuration example and Django demo.