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.459
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.459.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_circleci_coverage-0.2.459-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.3 kB
Release files / pytest_circleci_coverage-0.2.459.tar.gz
| Download URL | pytest_circleci_coverage-0.2.459.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae7c96fb21e6cfc60a6672e4061ed62ef7fdd0fbab8bc199e2d6928c8d68434c
|
|
BLAKE2b-256 checksum How to use checksums |
b650d00ef91dadd4352072b4c5460262eaf6b219d2dd3bdd6726ae43ba1ea295
|
| 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.459-py3-none-any.whl
| Download URL | pytest_circleci_coverage-0.2.459-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2925d18c3f68520649381a83abcd5b168c46f9259647d0463fc0a10a15fc46d
|
|
BLAKE2b-256 checksum How to use checksums |
dea169af8849a08d6131f080d18fa08f9a9c3c51d3917fe2e71477f51f5be7a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|