def __init__(self): BaseReporter.__init__(self) self.started = [] self.finished = [] self.stdout = "" self.stderr = "" self.has_started = False self.is_done = False
def text_run(*args, **kwargs): """ Run suites with a TextStreamReporter. """ from testoob.utils import _pop kwargs.setdefault("reporters", []) import sys from testoob.reporting import TextStreamReporter reporter_class = _pop(kwargs, "reporter_class", TextStreamReporter) from testoob.reporting.options import silent if not silent: kwargs["reporters"].append(reporter_class(stream=sys.stderr)) # Always have at least one base reporter, so isSuccessful always works if len(kwargs["reporters"]) == 0: from testoob.reporting.base import BaseReporter kwargs["reporters"].append(BaseReporter()) from testoob.reporting.options import coverage for reporter in kwargs["reporters"]: reporter.setCoverageInfo(*coverage) return run(*args, **kwargs)
def __init__(self): BaseReporter.__init__(self) self.success = True