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.85
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.85.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_circleci_coverage-0.1.85-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / pytest_circleci_coverage-0.1.85.tar.gz
| Download URL | pytest_circleci_coverage-0.1.85.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbf01a1a8ace0ff326cc71b005b81038efe3c04a7c87109128c12358152c283a
|
|
BLAKE2b-256 checksum How to use checksums |
70b62423474ba63e79db20066976ad2a5868f2c49e6364603f71dc3b21fda09b
|
| 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.85-py3-none-any.whl
| Download URL | pytest_circleci_coverage-0.1.85-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d89aa5f90e6631cabad7f504555262c562db8e0b233afec63f399665c1cb083
|
|
BLAKE2b-256 checksum How to use checksums |
50d4c5b2eb31156c5b570793d9a0124782b83885ac4acaaacefe6f8280666fdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|