This MR contains the following updates:
Note that this release drops support for multiprocessing.
--cov-fail-underno longer causes
pytest --collect-onlyto fail Contributed by Zac Hatfield-Dodds in
Dropped support for multiprocessing (mostly because
issue 82408 <https://github.com/python/cpython/issues/82408>_). This feature was mostly working but very broken in certain scenarios and made the test suite very flaky and slow.
There is builtin multiprocessing support in coverage and you can migrate to that. All you need is this in your
[run] concurrency = multiprocessing parallel = true sigterm = true
Fixed deprecation in
setup.pyby trying to import setuptools before distutils. Contributed by Ben Greiner in
Removed undesirable new lines that were displayed while reporting was disabled. Contributed by Delgan in
Documentation fixes. Contributed by Andre Brisco in
#​543 <https://github.com/pytest-dev/pytest-cov/pull/543>_ and Colin O'Dell in
Added support for LCOV output format via
--cov-report=lcov. Only works with coverage 6.3+. Contributed by Christian Fetzer in
Modernized pytest hook implementation. Contributed by Bruno Oliveira in
#​549 <https://github.com/pytest-dev/pytest-cov/pull/549>_ and Ronny Pfannschmidt in
Note that this release drops support for Python 2.7 and Python 3.5.
- Added support for Python 3.10 and updated various test dependencies.
Contributed by Hugo van Kemenade in
- Switched from Travis CI to GitHub Actions. Contributed by Hugo van Kemenade in
#​494 <https://github.com/pytest-dev/pytest-cov/pull/494>_ and
- Add a
--cov-resetCLI option. Contributed by Danilo Šegan in
- Improved validation of
--cov-fail-underCLI option. Contributed by ... Ronny Pfannschmidt's desire for skark in
- Dropped Python 2.7 support.
Contributed by Thomas Grainger in
- Updated trove classifiers. Contributed by Michał Bielawski in
- Reverted change for
tomlrequirement. Contributed by Thomas Grainger in
- Changed the
tomlrequirement to be always be directly required (instead of being required through a coverage extra). This fixes issues with pip-compile (
pip-tools#​1300 <https://github.com/jazzband/pip-tools/issues/1300>). Contributed by Sorin Sbarnea in
show_contexts. Contributed by Brian Rutledge in
- Added coverage's
tomlextra to install requirements in setup.py. Contributed by Christian Riedel in
pytest_cov.__version__to have the right value (string with version instead of a string including
- Fixed license classifier in
setup.py. Contributed by Chris Sreesangkom in
- Fixed commits since badge.
Contributed by Terence Honles in
- Fixed support for newer setuptools (v42+).
Contributed by Michał Górny in
- Bumped minimum coverage requirement to 5.2.1. This prevents reporting issues.
Contributed by Mateus Berardo de Souza Terra in
- Improved sample projects (from the
examples <https://github.com/pytest-dev/pytest-cov/tree/master/examples>_ directory) to support running
tox -e pyXY. Now the example configures a suffixed coverage data file, and that makes the cleanup environment unnecessary. Contributed by Ganden Schaffner in
- Removed the empty
console_scriptsentrypoint that confused some Gentoo build script. I didn't ask why it was so broken cause I didn't want to ruin my day. Contributed by Michał Górny in
- Fixed the missing
coverage context <https://coverage.readthedocs.io/en/stable/contexts.html>_ when using subprocesses. Contributed by Bernát Gábor in
- Updated the config section in the docs.
Contributed by Pamela McA'Nulty in
- Migrated CI to travis-ci.com (from .org).
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.