Coverage.py
Coverage.py: Python Code Coverage from Setup to CI Integration
Coverage.py measures which Python lines, branches, and functions are executed during tests. Use it with pytest-cov for seamless pytest integration, enforce minimum coverage with --fail-under, and generate XML reports for Codecov, SonarQube, and GitHub Actions integrations. Coverage.py is the standard Python coverage measurement tool. Unlike language-