Python·100 questionsHow to measure test coverage?SaveUpdated: 2026-08-31Answer•coverage.py or pytest-cov.•Run: pytest --cov=package.•View the HTML report.•High coverage does not guarantee quality, but helps.•Goal: cover critical business logic.Ask AI to clarifyWas this answer helpful?HelpfulNot helpfulSuggest an improvement