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

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: exclude-until-coverage-plugin-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 f5cd45aa994eb61701618fa4a27cb96ff24cb027f3c16718f6b75186308d94fc
MD5 a73d2500f40103a22f241b3e7b55a5d5
BLAKE2b-256 8768751fc82d408c73ecea492cde4bce05fe2a66ff5c7975d769041cc1ae702b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exclude_until_coverage_plugin-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a99048cfcbfa20c6f430db3b828a1dc076e3b694a3592cf6d700f5bc9735adc3
MD5 79a47f8735121f256cf96aac1ac85496
BLAKE2b-256 f04bcaa71dbf13a30245802a72a8f330f7628e96a8b38e27901c9616d2b127af

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