Posts Tagged: tox
-
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.
-
tox.ini Configuration for Testing Python Packages Across 3.10‑3.13
Example tox.ini for multi‑Python testing (py310‑py313) with pytest, coverage, mypy, and ruff. Includes CI, benchmarks, and pyproject.toml integration.