Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 95 committers (1.1%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.6%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Coverage plugin for pytest.
Basic Info
Statistics
- Stars: 1,947
- Watchers: 41
- Forks: 218
- Open Issues: 152
- Releases: 0
Topics
Metadata Files
README.rst
========
Overview
========
.. start-badges
.. list-table::
:stub-columns: 1
* - docs
- |docs|
* - tests
- |github-actions|
* - package
- |version| |conda-forge| |wheel| |supported-versions| |supported-implementations| |commits-since|
.. |docs| image:: https://readthedocs.org/projects/pytest-cov/badge/?style=flat
:target: https://readthedocs.org/projects/pytest-cov/
:alt: Documentation Status
.. |github-actions| image:: https://github.com/pytest-dev/pytest-cov/actions/workflows/test.yml/badge.svg
:alt: GitHub Actions Status
:target: https://github.com/pytest-dev/pytest-cov/actions
.. |version| image:: https://img.shields.io/pypi/v/pytest-cov.svg
:alt: PyPI Package latest release
:target: https://pypi.org/project/pytest-cov
.. |conda-forge| image:: https://img.shields.io/conda/vn/conda-forge/pytest-cov.svg
:target: https://anaconda.org/conda-forge/pytest-cov
.. |wheel| image:: https://img.shields.io/pypi/wheel/pytest-cov.svg
:alt: PyPI Wheel
:target: https://pypi.org/project/pytest-cov
.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/pytest-cov.svg
:alt: Supported versions
:target: https://pypi.org/project/pytest-cov
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/pytest-cov.svg
:alt: Supported implementations
:target: https://pypi.org/project/pytest-cov
.. |commits-since| image:: https://img.shields.io/github/commits-since/pytest-dev/pytest-cov/v6.3.0.svg
:alt: Commits since latest release
:target: https://github.com/pytest-dev/pytest-cov/compare/v6.3.0...master
.. end-badges
This plugin produces coverage reports. Compared to just using ``coverage run`` this plugin does some extras:
* Subprocess support: you can fork or run stuff in a subprocess and will get covered without any fuss.
* Xdist support: you can use all of pytest-xdist's features and still get coverage.
* Consistent pytest behavior. If you run ``coverage run -m pytest`` you will have slightly different ``sys.path`` (CWD will be
in it, unlike when running ``pytest``).
All features offered by the coverage package should work, either through pytest-cov's command line options or
through coverage's config file.
* Free software: MIT license
Installation
============
Install with pip::
pip install pytest-cov
For distributed testing support install pytest-xdist::
pip install pytest-xdist
Upgrading from ancient pytest-cov
---------------------------------
`pytest-cov 2.0` is using a new ``.pth`` file (``pytest-cov.pth``). You may want to manually remove the older
``init_cov_core.pth`` from site-packages as it's not automatically removed.
Uninstalling
------------
Uninstall with pip::
pip uninstall pytest-cov
Under certain scenarios a stray ``.pth`` file may be left around in site-packages.
* `pytest-cov 2.0` may leave a ``pytest-cov.pth`` if you installed without wheels
(``easy_install``, ``setup.py install`` etc).
* `pytest-cov 1.8 or older` will leave a ``init_cov_core.pth``.
Usage
=====
::
pytest --cov=myproj tests/
Would produce a report like::
-------------------- coverage: ... ---------------------
Name Stmts Miss Cover
----------------------------------------
myproj/__init__ 2 0 100%
myproj/myproj 257 13 94%
myproj/feature4286 94 7 92%
----------------------------------------
TOTAL 353 20 94%
Documentation
=============
https://pytest-cov.readthedocs.io/en/latest/
Coverage Data File
==================
The data file is erased at the beginning of testing to ensure clean data for each test run. If you
need to combine the coverage of several test runs you can use the ``--cov-append`` option to append
this coverage data to coverage data from previous test runs.
The data file is left at the end of testing so that it is possible to use normal coverage tools to
examine it.
Limitations
===========
For distributed testing the workers must have the pytest-cov package installed. This is needed since
the plugin must be registered through setuptools for pytest to start the plugin on the
worker.
For subprocess measurement environment variables must make it from the main process to the
subprocess. The python used by the subprocess must have pytest-cov installed. The subprocess must
do normal site initialisation so that the environment variables can be detected and coverage
started. See the `subprocess support docs `_
for more details of how this works.
Security
========
To report a security vulnerability please use the `Tidelift security contact `_.
Tidelift will coordinate the fix and disclosure.
Acknowledgements
================
Whilst this plugin has been built fresh from the ground up it has been influenced by the work done
on pytest-coverage (Ross Lawley, James Mills, Holger Krekel) and nose-cover (Jason Pellerin) which are
other coverage plugins.
Ned Batchelder for coverage and its ability to combine the coverage results of parallel runs.
Holger Krekel for pytest with its distributed testing support.
Jason Pellerin for nose.
Michael Foord for unittest2.
No doubt others have contributed to these tools as well.
Owner
- Name: pytest-dev
- Login: pytest-dev
- Kind: organization
- Email: pytest-dev@python.org
- Location: Everywhere
- Website: https://pytest.org
- Twitter: pytestdotorg
- Repositories: 75
- Profile: https://github.com/pytest-dev
GitHub Events
Total
- Issues event: 41
- Watch event: 166
- Delete event: 10
- Issue comment event: 172
- Push event: 35
- Pull request review comment event: 39
- Pull request review event: 49
- Pull request event: 33
- Fork event: 13
- Create event: 13
Last Year
- Issues event: 41
- Watch event: 166
- Delete event: 10
- Issue comment event: 172
- Push event: 35
- Pull request review comment event: 39
- Pull request review event: 49
- Pull request event: 33
- Fork event: 13
- Create event: 13
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Ionel Cristian Mărieș | c****t@i****o | 479 |
| schlamar | m****h@g****m | 101 |
| Meme Dough | m****h@g****m | 83 |
| Daniel Hahler | g****t@t****e | 38 |
| Thomas Grainger | t****n@g****m | 24 |
| Hugo van Kemenade | h****k | 22 |
| Tsvika Shapira | t****s@g****m | 14 |
| Ned Batchelder | n****d@n****m | 14 |
| David Szotten | d****n@g****m | 14 |
| pre-commit-ci[bot] | 6****] | 9 |
| Rick van Hattem | W****h@w****h | 8 |
| Bruno Oliveira | n****s@g****m | 8 |
| Christian Clauss | c****s@m****m | 5 |
| Christian Ledermann | c****n@g****m | 4 |
| Saurabh Kumar | s****h@s****m | 4 |
| Sorin Sbarnea | s****a@g****m | 3 |
| Buck Golemon | w****r@g****m | 3 |
| Michael Manganiello | a****e | 3 |
| Michał Górny | m****y@g****g | 3 |
| Zoltan Kozma | z****t@b****k | 3 |
| Feilong Niu | n****g@w****m | 3 |
| Patrick Lannigan | p****n@g****m | 3 |
| Yuki Kobayashi | d****r@g****m | 3 |
| Terence D. Honles | t****e@h****m | 2 |
| Harm Geerts | h****s@o****l | 2 |
| Jeremy Bowman | j****n@e****g | 2 |
| Jonathan Stewmon | j****n@b****m | 2 |
| Marc Abramowitz | m****c@m****m | 2 |
| Michael Elovskikh | w****k@y****u | 2 |
| Ryan Hiebert | r****n@r****m | 2 |
| and 65 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 157
- Total pull requests: 100
- Average time to close issues: 5 months
- Average time to close pull requests: 5 months
- Total issue authors: 137
- Total pull request authors: 47
- Average comments per issue: 4.32
- Average comments per pull request: 2.63
- Merged pull requests: 51
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 37
- Pull requests: 34
- Average time to close issues: 14 days
- Average time to close pull requests: 5 days
- Issue authors: 34
- Pull request authors: 10
- Average comments per issue: 3.11
- Average comments per pull request: 1.65
- Merged pull requests: 21
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
- webknjaz (5)
- ego-thales (4)
- ssbarnea (3)
- adamjstewart (3)
- cjw296 (2)
- abrisco (2)
- brunolnetto (2)
- nedbat (2)
- jaraco (2)
- masaccio (2)
- asmeurer (2)
- kloczek (2)
- cclauss (2)
- FaridDelgadoTR (1)
- alittlesir (1)
Pull Request Authors
- ionelmc (20)
- cclauss (10)
- tsvikas (4)
- ssbarnea (4)
- koyuki7w (4)
- akx (4)
- tserg (2)
- s-t-e-v-e-n-k (2)
- mbyrnepr2 (2)
- davet2001 (2)
- didibz-harmonya (2)
- jongbinjung (2)
- ofek (2)
- edcarter (2)
- mikemanger (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 24
-
Total downloads:
- pypi 78,722,764 last-month
- Total docker downloads: 2,989,637,519
-
Total dependent packages: 11,656
(may contain duplicates) -
Total dependent repositories: 88,908
(may contain duplicates) - Total versions: 117
- Total maintainers: 3
pypi.org: pytest-cov
Pytest plugin for measuring coverage.
- Homepage: https://github.com/pytest-dev/pytest-cov
- Documentation: https://pytest-cov.readthedocs.io/
- License: MIT
-
Latest release: 6.3.0
published 6 months ago
Rankings
Maintainers (1)
alpine-v3.18: py3-pytest-cov-pyc
Precompiled Python bytecode for py3-pytest-cov
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 4.0.0-r2
published almost 3 years ago
Rankings
Maintainers (1)
alpine-v3.18: py3-pytest-cov
Pytest plugin for measuring coverage
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 4.0.0-r2
published almost 3 years ago
Rankings
Maintainers (1)
spack.io: py-pytest-cov
Pytest plugin for measuring coverage.
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: []
-
Latest release: 4.0.0
published almost 3 years ago
Rankings
Maintainers (1)
conda-forge.org: pytest-cov
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 4.0.0
published over 3 years ago
Rankings
alpine-v3.13: py3-pytest-cov
Pytest plugin for measuring coverage.
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 2.11.1-r0
published about 5 years ago
Rankings
Maintainers (1)
alpine-edge: py3-pytest-cov-pyc
Precompiled Python bytecode for py3-pytest-cov
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 5.0.0-r0
published almost 2 years ago
Rankings
Maintainers (1)
alpine-v3.12: py3-pytest-cov
Pytest plugin for measuring coverage.
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 2.8.1-r1
published almost 6 years ago
Rankings
Maintainers (1)
alpine-edge: py3-pytest-cov
Pytest plugin for measuring coverage
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 5.0.0-r0
published almost 2 years ago
Rankings
Maintainers (1)
alpine-v3.11: py3-pytest-cov
Pytest plugin for measuring coverage.
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 2.8.1-r1
published over 6 years ago
Rankings
Maintainers (1)
alpine-v3.14: py3-pytest-cov
Pytest plugin for measuring coverage.
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 2.11.1-r1
published almost 5 years ago
Rankings
Maintainers (1)
alpine-v3.15: py3-pytest-cov
Pytest plugin for measuring coverage
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 2.12.1-r0
published over 4 years ago
Rankings
Maintainers (1)
alpine-v3.10: py3-pytest-cov
Pytest plugin for measuring coverage.
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 2.7.1-r0
published over 6 years ago
Rankings
Maintainers (1)
alpine-v3.16: py3-pytest-cov
Pytest plugin for measuring coverage
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 2.12.1-r1
published about 4 years ago
Rankings
Maintainers (1)
alpine-v3.17: py3-pytest-cov
Pytest plugin for measuring coverage
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 4.0.0-r0
published over 3 years ago
Rankings
Maintainers (1)
anaconda.org: pytest-cov
This plugin produces coverage reports. Compared to just using coverage run this plugin does some extras: * Subprocess support: you can fork or run stuff in a subprocess and will get covered without any fuss. * Xdist support: you can use all of pytest-xdist's features and still get coverage. * Consistent pytest behavior. If you run coverage run -m pytest you will have slightly different sys.path (CWD will be in it, unlike when running pytest). All features offered by the coverage package should work, either through pytest-cov's command line options or through coverage's config file.
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 6.0.0
published about 1 year ago
Rankings
alpine-v3.22: py3-pytest-cov-pyc
Precompiled Python bytecode for py3-pytest-cov
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 5.0.0-r0
published almost 2 years ago
Rankings
Maintainers (1)
alpine-v3.19: py3-pytest-cov-pyc
Precompiled Python bytecode for py3-pytest-cov
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 4.1.0-r0
published over 2 years ago
Rankings
Maintainers (1)
alpine-v3.21: py3-pytest-cov
Pytest plugin for measuring coverage
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 5.0.0-r0
published almost 2 years ago
Rankings
Maintainers (1)
alpine-v3.21: py3-pytest-cov-pyc
Precompiled Python bytecode for py3-pytest-cov
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 5.0.0-r0
published almost 2 years ago
Rankings
Maintainers (1)
alpine-v3.22: py3-pytest-cov
Pytest plugin for measuring coverage
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 5.0.0-r0
published almost 2 years ago
Rankings
Maintainers (1)
alpine-v3.20: py3-pytest-cov
Pytest plugin for measuring coverage
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 5.0.0-r0
published almost 2 years ago
Rankings
Maintainers (1)
alpine-v3.20: py3-pytest-cov-pyc
Precompiled Python bytecode for py3-pytest-cov
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 5.0.0-r0
published almost 2 years ago
Rankings
Maintainers (1)
alpine-v3.19: py3-pytest-cov
Pytest plugin for measuring coverage
- Homepage: https://github.com/pytest-dev/pytest-cov
- License: MIT
-
Latest release: 4.1.0-r0
published over 2 years ago
Rankings
Maintainers (1)
Dependencies
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- re-actors/alls-green release/v1 composite
- pip >=19.1.1
- setuptools >=18.0.1
- six >=1.14.0
- tox *
- virtualenv >=16.6.0
- docutils ==0.16
- jinja2 <3.1
- sphinx ==3.0.3
- sphinx-py3doc-enhanced-theme ==2.4.0
- coverage *
- pytest >=4.6