Plugin for code coverage excluding lines until marker found.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file exclude-until-coverage-plugin-0.3.1.tar.gz
.
File metadata
- Download URL: exclude-until-coverage-plugin-0.3.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd7a0098eaafb7eff3fc7a7ff253f79f50445d8a4bf0d14969da7bc094fab29 |
|
MD5 | 26b7042626b5ca46b232e349684c991e |
|
BLAKE2b-256 | c93ec03d8210acdfe68e73e708c18da978108339e8d0aa92b8f8abcc94c66506 |