Contents

coverage 7.6.2

0

Code coverage measurement for Python

Code coverage measurement for Python

Stars: 2989, Watchers: 2989, Forks: 429, Open Issues: 288

The nedbat/coveragepy repo was created 6 years ago and the last code push was Yesterday.
The project is very popular with an impressive 2989 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 233 others
License
Apache-2.0
Homepage
https://github.com/nedbat/coveragepy
PyPi:
https://pypi.org/project/coverage/
Documentation:
https://coverage.readthedocs.io/en/7.6.2
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 288 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