Skip to main content

Plugin for code coverage excluding lines until marker found.

Project description

Apache 2.0 License

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exclude_until_coverage_plugin-0.4.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file exclude_until_coverage_plugin-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for exclude_until_coverage_plugin-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 598596a120c2c1bc2613b3915158905ae3d957be23bba2e4da52de66de24c943
MD5 cc043dcb6aff6e32fe0fe484aa7938bc
BLAKE2b-256 3350da2460d7e339ba9060f3f4cde7e37680790b89e711a0427ecaa8375a13fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page