A coverage.py plugin that excludes lines until a marker is found.
The plugin is pip installable:
$ pip install exclude-until-coverage-plugin
To run it, add this setting to your .coveragerc file:
[run]
plugins =
exclude_until_coverage_plugin
Then run your tests under coverage.py. This will use the default marker # = exclude above lines = and exclude all lines above the line this text appears on. Use the plugin options to change the marker. To change the marker, add this configuration value to your .coveragerc file:
[exclude_until_coverage_plugin] marker=# my marker
Metadata
Release files for exclude-until-coverage-plugin 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| exclude_until_coverage_plugin-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / exclude_until_coverage_plugin-0.4.0-py3-none-any.whl
| Download URL | exclude_until_coverage_plugin-0.4.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
598596a120c2c1bc2613b3915158905ae3d957be23bba2e4da52de66de24c943
|
|
BLAKE2b-256 checksum How to use checksums |
3350da2460d7e339ba9060f3f4cde7e37680790b89e711a0427ecaa8375a13fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|