A Coverage.py plugin module for adding test names as contexts
Project description
Coverage.py Test Context Plugin
A Coverage.py plugin module for adding test names as contexts
Coverage reports from Coverage.py can include line "contexts"; strings that are attached to lines of code that provide some sort of contextual information to a reader.
This package consists of a dynamic context plugin for Coverage.py that adds unit test names as contexts.
Usage
Add the plugins package to your test dependencies, wherever they are:
kodo.plugins.cover-test-context
Then add the plugin to your coverage
configuration:
pyproject.toml
[tool.coverage.run]
plugins = [
"kodo.plugins.cover_test_context",
]
setup.cfg, tox.ini
[coverage:run]
plugins =
kodo.plugins.cover_test_context
.coveragerc
[run]
plugins =
kodo.plugins.cover_test_context
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kodo.plugins.cover-test-context-0.1.tar.gz
.
File metadata
- Download URL: kodo.plugins.cover-test-context-0.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2738d8675249d13aeed3a484c4c9db8ce47506d4fe1ec1282c7a950307b008e0 |
|
MD5 | 7289fa8d5e4c8d7adabf870d0d9600bb |
|
BLAKE2b-256 | 8898e0eae0416be0ae3fb05bcb949d3ff6a86cf04dc2e1d90b42f1e4a74a7ec4 |
File details
Details for the file kodo.plugins.cover_test_context-0.1-py3-none-any.whl
.
File metadata
- Download URL: kodo.plugins.cover_test_context-0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4d7484c9b600fc6a0088303d1a4ff1afad95d63435194ccc14f5c350d23309b |
|
MD5 | 675b7af003f682dc1837772e1af8b139 |
|
BLAKE2b-256 | ca34c03458cd7003b07d329bd1679525aa026de0f89109fa71eb745d26fbfd33 |