Skip to content

About

The code coverage tool for Python

Resources

Code of conduct

Contributing

Security policy

Stars

3.4k stars

Watchers

33 watching

Forks

Latest commit

Β 

History

7,791 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Coverage.py

Code coverage measurement for Python.

Stand with Ukraine

Coverage.py measures code coverage, typically during test execution. It uses the code analysis tools and tracing hooks provided in the Python standard library to determine which lines are executable, and which have been executed.

Coverage.py runs on these versions of Python:

  • Python 3.11 through 3.16.0a2, including free-threading.
  • PyPy3 version 3.11.

Documentation is on Read the Docs. Code repository and issue tracker are on GitHub.

Getting Started

Looking to run coverage on your test suite? See the Quick Start section of the docs.

Change History

The complete history of changes is on the change history page.

Code of Conduct

Everyone participating in the coverage.py project is expected to treat other people with respect and to follow the guidelines articulated in the Python Community Code of Conduct.

Contributing

The Contributing section of the docs has full details about contributing to coverage.py, but importantly:

  • Communicate concisely.
  • Check for pull requests in progress.
  • Include tests but don't over-mock.
  • Describe user-visible changes in a scriv changelog fragment.

License

Licensed under the Apache 2.0 License. For details, see NOTICE.txt.

About

The code coverage tool for Python

Resources

Code of conduct

Contributing

Security policy

Stars

3.4k stars

Watchers

33 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages