A .pth file that calls coverage.process_startup()
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
251f25ba55c4ec4eff77edef25ad35962be45d5af762cd0de6c3b0f43ca6bafa
|
|
| MD5 |
685050df363836b3e07b6ba9995ba3c5
|
|
| BLAKE2b-256 |
a2ac29b742b9420234311b221d050327ae56fdffb153cf164f9b56da95e64d5f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coverage_p-25.2.0-py2.py3-none-any.whl -
Subject digest:
251f25ba55c4ec4eff77edef25ad35962be45d5af762cd0de6c3b0f43ca6bafa - Sigstore transparency entry: 167904551
- Sigstore integration time:
-
Permalink:
twm/coverage-p@c89ef820c84923ca6a5b0b168840ba59c4315430 -
Branch / Tag:
refs/tags/coverage-p-25.2.0 - Owner: https://github.com/twm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@c89ef820c84923ca6a5b0b168840ba59c4315430 -
Trigger Event:
push
-
Statement type: