Skip to main content

A .pth file that calls coverage.process_startup()

Project description

PyPI calver: YY.MM.MICRO CI

This package contains a .pth file that calls coverage.process_startup().

Usage

Install it with Pip:

$ pip install coverage-p

Then run your tests like:

$ COVERAGE_PROCESS_START="$PWD/.coveragerc" coverage run -p -m unittest ...

Each Python processes your tests spawn will generate a .coverage file. Merge these by running coverage combine.

See the Coverage.py document Measuring sub-processes for more information.

Why not coverage_pth?

The coverage_pth package attempts to do the same thing, but the wheels it provides only work on Python 3.6. It also appears unmaintained.

Compatiblity Policy

Any version of CPython supported upstream and by Coverage.py is considered supported and should be tested in CI. Additionally, CI covers supported 3.x releases of PyPy, subject to availability in GitHub Actions.

coverage-p is tested against the current version of Coverage.py. The API coverage-p invokes has been stable for many years, so compatibility issues are not expected.

Changelog

v25.2.0 (2025-02-01)

  • Add License-Expression metadata

  • Repackage with Hatchling

v24.7.0 (2024-07-06)

  • Initial release

Contributing

File issues and PRs on GitHub. See CONTRIBUTING.rst for more. Please follow the Twisted code of conduct.

License

coverage-p is made available under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coverage_p-25.2.0-py2.py3-none-any.whl (3.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file coverage_p-25.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: coverage_p-25.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for coverage_p-25.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 251f25ba55c4ec4eff77edef25ad35962be45d5af762cd0de6c3b0f43ca6bafa
MD5 685050df363836b3e07b6ba9995ba3c5
BLAKE2b-256 a2ac29b742b9420234311b221d050327ae56fdffb153cf164f9b56da95e64d5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for coverage_p-25.2.0-py2.py3-none-any.whl:

Publisher: ci.yml on twm/coverage-p

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page