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
Built Distribution
File details
Details for the file exclude-until-coverage-plugin-0.3.0.tar.gz
.
File metadata
- Download URL: exclude-until-coverage-plugin-0.3.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/49.6.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d948c611040ae20114f7cb7b7f6f8a38aa3de313893442b29b11431a56f3929b |
|
MD5 | 04a2d2dd7e74407ca1d7d08aab71bec7 |
|
BLAKE2b-256 | e3cde4856614328d3d7cac9fd1c7eebe4cdfabca038f0d252689472c6b6a849b |
File details
Details for the file exclude_until_coverage_plugin-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: exclude_until_coverage_plugin-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/49.6.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f9f6622386df8d329d4859183e22bcfa47f1df0a707c3bda7f173983671661d |
|
MD5 | 150a5e5a5fa7099081e20d1316e42392 |
|
BLAKE2b-256 | a34995ebac8692c3d630b58ae783ac3d21adffbde2c8582e5a462c2a87610bb3 |