Skip to main content
Help us improve Python packaging – donate today!

Coverage filter

Project Description

Coverage filter

Allows developers to indicate which code they are trying to test when using coverage tools.

Warning This is just a proof of concept. The API will likely change as I receive feedback. There are also no unit tests, or other code quality control methods in place. If you wish to use this code, please make a copy for yourself, so my changes won’t break your build.

Example

Example code to be tested: (in target.py)

def target(self):
    return target_inner()

def target_inner(self):
    return 42

Example unit test: (in test_target.py)

from coverage_filter import CoverageFilter
from target import target

@CoverageFilter('target.py:target')
def test_target(self):
    assert target() == 42

For more information, check out my blog on the topic.

Release history Release notifications

This version
History Node

0.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
coverage_filter-0.0.0.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None Oct 30, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page