ExcludeUntilCoveragePlugin

Plugin for code coverage excluding lines until marker found.


License
Apache-2.0
Install
pip install ExcludeUntilCoveragePlugin==0.1.0

Documentation

Exclude Until Coverage Plugin

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