Metadata-Version: 2.1
Name: exclude-until-coverage-plugin
Version: 0.3.1
Summary: Plugin for code coverage excluding lines until marker found.
Home-page: https://github.com/hsorby/exclude_until_coverage_plugin/
Author: Hugh Sorby
Author-email: h.sorby@auckland.ac.nz
License: Apache Software License
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: Implementation :: Jython
Classifier: Programming Language :: Python :: Implementation :: IronPython
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Description-Content-Type: text/x-rst
License-File: LICENSE


Exclude Until Coverage Plugin
=============================

.. start-badges

|license|

.. |license| image:: https://img.shields.io/pypi/l/django_coverage_plugin.svg
    :target: https://pypi.python.org/pypi/exclude_until_coverage_plugin
    :alt: Apache 2.0 License

.. end-badges

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

.. _coverage.py: http://nedbatchelder.com/code/coverage


