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

Release files for pytest-circleci-coverage 0.2.546

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.2.546
File Size Uploaded
pytest_circleci_coverage-0.2.546.tar.gz 6.2 kB Details

Built distribution (wheel)

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

Total release size: 14.3 kB

Release files / pytest_circleci_coverage-0.2.546.tar.gz

Download URL pytest_circleci_coverage-0.2.546.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
914374839cf84d217796a4f7ee77ce97019e955f963e0b8c2f2dad5870a624d8
BLAKE2b-256 checksum
How to use checksums
fcbaf5ee9509ed4fca932aa670e4c810b36cc603c42932a0752b9264b6a7472f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

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

Download URL pytest_circleci_coverage-0.2.546-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37ad4c09f86d36cd0ae61102578691c18985f5a0bb1d7b8e70866de839846bb4
BLAKE2b-256 checksum
How to use checksums
b83e13fd6ee464f5b85e873c37d4c521ad4008925bfc4913f8431993ccef4c46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.2.546 This release

2 release files

0.1.85

2 release files

0.1.1

2 release files

0.1.0

2 release files

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