def addSuccess(self, test): TrialReporter.addSuccess(self, test) if os.isatty(sys.stdout.fileno()): self.updateLine() else: self._write(".") self.at_line_start = False
def __init__(self, stream=sys.stdout, tbformat='default', realtime=False, publisher=None): TeamcityTestResult.__init__(self) Reporter.__init__(self, stream=stream, tbformat=tbformat, realtime=realtime, publisher=publisher)
def test_writeResults(self): """ L{DistTrialRunner.writeResults} writes to the stream specified in the init. """ stringIO = StringIO() result = DistReporter(Reporter(stringIO)) self.runner.writeResults(result) self.assertTrue(stringIO.tell() > 0)
def startTest(self, test): TrialReporter.startTest(self, test) self.curtest = test self.updateLine()
def addUnexpectedSuccess(self, *args): TrialReporter.addUnexpectedSuccess(self, *args) self.updateLine()
def addExpectedFailure(self, *args): TrialReporter.addExpectedFailure(self, *args) self.updateLine()
def addError(self, *args): TrialReporter.addError(self, *args) self.updateLine()
def addSkip(self, *args): TrialReporter.addSkip(self, *args) self.updateLine()
def addSuccess(self, test): TrialReporter.addSuccess(self, test) if os.isatty(sys.stdout.fileno()): self.updateLine() else: self._write(".")
def startTest(self, test): TrialReporter.startTest(self, test) self.curtest = test if os.isatty(sys.stdout.fileno()): self.updateLine()
def __init__(self, stream=sys.stdout, tbformat='default', realtime=False, publisher=None): JUnitXmlResult.__init__(self, stream) Reporter.__init__(self, stream, tbformat, realtime, publisher) self.startTestRun()