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.0.tar.gz (3.1 kB view details)

Uploaded Source

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

Hashes for exclude-until-coverage-plugin-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d948c611040ae20114f7cb7b7f6f8a38aa3de313893442b29b11431a56f3929b
MD5 04a2d2dd7e74407ca1d7d08aab71bec7
BLAKE2b-256 e3cde4856614328d3d7cac9fd1c7eebe4cdfabca038f0d252689472c6b6a849b

See more details on using hashes here.

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

Hashes for exclude_until_coverage_plugin-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f9f6622386df8d329d4859183e22bcfa47f1df0a707c3bda7f173983671661d
MD5 150a5e5a5fa7099081e20d1316e42392
BLAKE2b-256 a34995ebac8692c3d630b58ae783ac3d21adffbde2c8582e5a462c2a87610bb3

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