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 Distribution

exclude-until-coverage-plugin-0.3.1.tar.gz (7.3 kB view hashes)

Uploaded Source

Supported by

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