Did I find the right examples for you? yes no

All Samples(46)  |  Call(21)  |  Derive(2)  |  Import(23)
Programmatic access to coverage.py.

To use::

    from coverage import coverage

    cov = coverage()
    cov.start()
    #.. call your code ..
    cov.stop()(more...)

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django_jenkins/tasks/with_coverage.py   rolf(Download)
# -*- coding: utf-8 -*-
# pylint: disable=W0201
import os
from optparse import make_option
from coverage.control import coverage
            omit = None
 
        self.coverage = coverage(branch=self.branch,
                                 source=self.test_apps,
                                 omit=omit,

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django_jenkins/tasks/with_coverage.py   antisocial(Download)
# -*- coding: utf-8 -*-
# pylint: disable=W0201
import os
from optparse import make_option
from coverage.control import coverage
            omit = None
 
        self.coverage = coverage(branch=self.branch,
                                 source=self.test_apps,
                                 omit=omit,

src/d/j/django-discover-jenkins-0.1.2/discover_jenkins/tasks/with_coverage.py   django-discover-jenkins(Download)
from django.utils.importlib import import_module
 
from coverage.control import coverage
 
from .. import settings
 
        self.coverage = coverage(
            branch=self.branch,
            source=settings.PROJECT_APPS,
            omit=self.exclude_locations,

src/d/j/django-jenkins-0.15.0/django_jenkins/tasks/with_coverage.py   django-jenkins(Download)
# -*- coding: utf-8 -*-
# pylint: disable=W0201
import os
from optparse import make_option
from coverage.control import coverage
            omit = None
 
        self.coverage = coverage(branch=self.branch,
                                 source=self.test_apps,
                                 omit=omit,

src/d/j/django-jenkins-HEAD/django_jenkins/tasks/with_coverage.py   django-jenkins(Download)
# -*- coding: utf-8 -*-
# pylint: disable=W0201
import os
from optparse import make_option
from coverage.control import coverage
            omit = None
 
        self.coverage = coverage(branch=self.branch,
                                 source=self.test_apps,
                                 omit=omit,

src/d/j/django-discover-jenkins-HEAD/discover_jenkins/tasks/with_coverage.py   django-discover-jenkins(Download)
from django.utils.importlib import import_module
 
from coverage.control import coverage
 
from .. import settings
 
        self.coverage = coverage(
            branch=self.branch,
            source=settings.PROJECT_APPS,
            omit=self.exclude_locations,

src/m/e/META-SHARE-HEAD/lib/python2.7/site-packages/django_jenkins/tasks/with_coverage.py   META-SHARE(Download)
# -*- coding: utf-8 -*-
# pylint: disable=W0201
import os
from optparse import make_option
from coverage.control import coverage
                pass
 
        self.coverage = coverage(branch=options['coverage_measure_branch'],
                                 source=self.test_apps,
                                 config_file=options['coverage_rcfile'] or Task.default_config_path())

src/o/v/overalls-0.1.1/overalls/collectors/python.py   overalls(Download)
try:
    from coverage.report import Reporter
    from coverage.control import coverage
    HAS_COVERAGE = True
except ImportError as err:
    def results(self):
        cov = coverage(
            data_file=self._data_file, config_file=self._config_file)
        cov.load()
        reporter = Reporter(cov, cov.config)

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/coverage/__init__.py   rolf(Download)
    __url__ += "/" + __version__
 
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript
    def wrapper(*args, **kwargs):
        """Singleton wrapper around a coverage method."""
        global _the_coverage
        if not _the_coverage:
            _the_coverage = coverage(auto_data=True)

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/coverage/__init__.py   antisocial(Download)
    __url__ += "/" + __version__
 
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript
    def wrapper(*args, **kwargs):
        """Singleton wrapper around a coverage method."""
        global _the_coverage
        if not _the_coverage:
            _the_coverage = coverage(auto_data=True)

  1 | 2 | 3  Next