Skip to main content

pytest-circleci-coverage

A pytest plugin that works with pytest-cov to generate coverage data for CircleCI's Smarter Testing.

Usage

Install the plugin via git.

python -m pip install pytest-circleci-coverage

Install pytest-cov.

Run pytest with coverage and the --circleci-coverage flag to generate coverage JSON.

pytest --cov --cov-context=test --circleci-coverage=coverage.json

Development

Running tests

Install the plugin locally in editable mode.

pip install --editable .

Run tests.

pytest

To generate the coverage.json, used in the CI integration test.

circleci testsuite "integration test" --local --analyze-tests="all" && cat coverage.json | jq --sort-keys > coveragetmp.json && mv coveragetmp.json coverage.json

Metadata

Release files for pytest-circleci-coverage 0.3.870

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-circleci-coverage 0.3.870
File Size Uploaded Provenance
pytest_circleci_coverage-0.3.870.tar.gz 6.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-circleci-coverage 0.3.870
File Interpreter ABI Platform
pytest_circleci_coverage-0.3.870-py3-none-any.whl Python 3 none any Details

Total release size: 15.3 kB

Release files / pytest_circleci_coverage-0.3.870.tar.gz

Download URL pytest_circleci_coverage-0.3.870.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
37223ff1d629c7ef6fbc04aadc28b14088421a39645aa8e1196efb531437f449
BLAKE2b-256 checksum
How to use checksums
af85ee276862e5df34f98faea8fa138158e1520516bf796e9eca8a8a49ce61dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / pytest_circleci_coverage-0.3.870-py3-none-any.whl

Download URL pytest_circleci_coverage-0.3.870-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a357f0ccd1d29ab0c4410b7c0357cbfacd7a110139445e08d8a369b032f36d10
BLAKE2b-256 checksum
How to use checksums
e65589549fbc0e4911da1bcf00525989f723ca0f75676f87ffb8397da690f273
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for pytest-circleci-coverage 0.3.870

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page