This chapter introduces Coverage.py, a tool for measuring code coverage in Python. It explains the importance of measuring coverage in both source and test code, highlighting the benefits of identifying missed lines, branches, and the configuration options available for customizing coverage reports. Different reporting options such as text-based and HTML reports are discussed.
Coverage.py measures code coverage of Python programs.
It identifies executed and unexecuted code parts.
Provides per-file and branch coverage reports.
Offers various reporting options (text, HTML) and configuration for exclusions.