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

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: exclude-until-coverage-plugin-0.2.1.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.2.1.tar.gz
Algorithm Hash digest
SHA256 aba5540d7e4c8edec2359bb0e673519a178fc7665e8be3755300edcb1c466c63
MD5 e83cc0b29bd48abad413e20241c8614b
BLAKE2b-256 04e3bbb9a898f9307757b492e060b1e9294ef643e4d9a64c8b8dc599840a34b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exclude_until_coverage_plugin-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3cfb7bdac1eeb47236c22e3456d57dea010aa123aa01317717a296c736a0659
MD5 98de055e48dbf774d45b573e77f7f95e
BLAKE2b-256 41fa4960ce5edbd9491a0b30f6e99a1b4c7510bea5144a73cae91f21c5649c26

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