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)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_circleci_coverage-0.2.546.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|