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.247
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_circleci_coverage-0.2.247.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_circleci_coverage-0.2.247-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.3 kB
Release files / pytest_circleci_coverage-0.2.247.tar.gz
| Download URL | pytest_circleci_coverage-0.2.247.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c40d6a50110d8b1fb04224737627a0f6d1d8bff1ecff3696a8f70cece2eda805
|
|
BLAKE2b-256 checksum How to use checksums |
536c27f52353e2f1911ce4b2f6771601b1c2eca92b9d896db481243304d84286
|
| 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.247-py3-none-any.whl
| Download URL | pytest_circleci_coverage-0.2.247-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d42c19711eef18b7a8842f5e134964e060f373a12c1ac93db402ffb706c3f29e
|
|
BLAKE2b-256 checksum How to use checksums |
39236c8abe4b0c2eb684fc86a642771033895c2b88131083d6e6281e833f5e66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|