Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jayclassless/coverage_python_version
A coverage.py plugin to facilitate exclusions based on Python version
https://github.com/jayclassless/coverage_python_version
coverage plugin python testing
Last synced: 2 days ago
JSON representation
A coverage.py plugin to facilitate exclusions based on Python version
- Host: GitHub
- URL: https://github.com/jayclassless/coverage_python_version
- Owner: jayclassless
- License: mit
- Created: 2018-02-11T17:37:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-24T02:14:01.000Z (about 5 years ago)
- Last Synced: 2025-01-14T23:33:23.383Z (4 days ago)
- Topics: coverage, plugin, python, testing
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.rst
Awesome Lists containing this project
README
***********************
coverage_python_version
***********************.. image:: https://img.shields.io/pypi/v/coverage_python_version.svg
:target: https://pypi.python.org/pypi/coverage_python_version
.. image:: https://img.shields.io/pypi/l/coverage_python_version.svg
:target: https://pypi.python.org/pypi/coverage_python_versionOverview
--------
``coverage_python_version`` is a `coverage.py`_ plugin that provides a very
basic means for you to exclude code from your coverage measurements based on
the version of Python that it is executed on... _coverage.py: https://coverage.readthedocs.io
Usage
-----
1. Add ``coverage_python_version`` to ``plugins`` option in the ``run`` section
of your ``coverage.py`` configuration.2. Use the comment ``# pragma: PY2`` to notate blocks of code that should be
measured under Python 2, and ``# pragma: PY3`` to notate blocks for Python
3.License
-------
``coverage_python_version`` is released under the terms of the `MIT License`_... _MIT License: https://opensource.org/licenses/MIT