Coverage.py
Measures which lines your tests actually execute.
Easy
pytest --cov=src (with pytest-cov) prints a report; aim for meaningful coverage of critical code, not 100% for its own sake.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.