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.1.117
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.1.117.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_circleci_coverage-0.1.117-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / pytest_circleci_coverage-0.1.117.tar.gz
| Download URL | pytest_circleci_coverage-0.1.117.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88f17822b15754f6ebd90c84c672ef44a064420eb6432890e79b906992bd7e94
|
|
BLAKE2b-256 checksum How to use checksums |
22b4ec3564e9ef47be0d579aa56060611626ae2d5312569ea8d0ac4f243a965e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / pytest_circleci_coverage-0.1.117-py3-none-any.whl
| Download URL | pytest_circleci_coverage-0.1.117-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2afcd7d6266ccf9401b5e2e72584101e39f9dfc5d44b27e944f51e66f0cff7c6
|
|
BLAKE2b-256 checksum How to use checksums |
f4e5462ccb32a01de948a704a11f6c993497e17fcd48fe4cb923cce8d1908b8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|