Contents

coverage 7.5.1

0

Code coverage measurement for Python

Code coverage measurement for Python

Stars: 2849, Watchers: 2849, Forks: 408, Open Issues: 280

The nedbat/coveragepy repo was created 5 years ago and the last code push was 19 hours ago.
The project is very popular with an impressive 2849 github stars!

How to Install coverage

You can install coverage using pip

pip install coverage

or add it to a project with poetry

poetry add coverage

Package Details

Author
Ned Batchelder and 226 others
License
Apache-2.0
Homepage
https://github.com/nedbat/coveragepy
PyPi:
https://pypi.org/project/coverage/
Documentation:
https://coverage.readthedocs.io/en/7.5.1
GitHub Repo:
https://github.com/nedbat/coveragepy

Classifiers

  • Software Development/Quality Assurance
  • Software Development/Testing
No  coverage  pypi packages just yet.

Errors

A list of common coverage errors.

Code Examples

Here are some coverage code examples and snippets.

GitHub Issues

The coverage package has 280 open issues on GitHub

  • Coverage report is incorrect if package-under-test is imported prior to invocation
  • Process hang with Coverage 6.3
  • Identifying which lines are covered by a statement
  • multiprocessing.resource_tracker is imported more than once
  • Offering Help: Modernised Python Syntax?
  • No data was collected and then GitHub CI failure
  • Drop in coverage with 6.2 vs 6.1.2
  • Infinite recursion running coverage with django unit tests on circleCI
  • Default the required complexity attribute to N/A
  • Coverage.py not reporting complexity metrics in cobertura.xml
  • Missing package with duplicate name in coverage-xml
  • open tomli file with newline=''
  • [xmlreport] when a filepath is in multiple source dirs, choose the highest one
  • add command line option to show current configuration
  • Support regex patterns in module names

See more issues on GitHub