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 details)

Uploaded Source

File details

Details for the file exclude-until-coverage-plugin-0.3.1.tar.gz.

File metadata

File hashes

Hashes for exclude-until-coverage-plugin-0.3.1.tar.gz
Algorithm Hash digest
SHA256 afd7a0098eaafb7eff3fc7a7ff253f79f50445d8a4bf0d14969da7bc094fab29
MD5 26b7042626b5ca46b232e349684c991e
BLAKE2b-256 c93ec03d8210acdfe68e73e708c18da978108339e8d0aa92b8f8abcc94c66506

See more details on using hashes here.

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