Пример #1
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)
Пример #5
0
 def startTest(self, test):
     TrialReporter.startTest(self, test)
     self.curtest = test
     self.updateLine()
Пример #6
0
 def addUnexpectedSuccess(self, *args):
     TrialReporter.addUnexpectedSuccess(self, *args)
     self.updateLine()
Пример #7
0
 def addExpectedFailure(self, *args):
     TrialReporter.addExpectedFailure(self, *args)
     self.updateLine()
Пример #8
0
 def addUnexpectedSuccess(self, *args):
     TrialReporter.addUnexpectedSuccess(self, *args)
     self.updateLine()
Пример #9
0
 def addError(self, *args):
     TrialReporter.addError(self, *args)
     self.updateLine()
Пример #10
0
 def addSkip(self, *args):
     TrialReporter.addSkip(self, *args)
     self.updateLine()
Пример #11
0
 def startTest(self, test):
     TrialReporter.startTest(self, test)
     self.curtest = test
     self.updateLine()
Пример #12
0
 def addSuccess(self, test):
     TrialReporter.addSuccess(self, test)
     if os.isatty(sys.stdout.fileno()):
         self.updateLine()
     else:
         self._write(".")
Пример #13
0
 def startTest(self, test):
     TrialReporter.startTest(self, test)
     self.curtest = test
     if os.isatty(sys.stdout.fileno()):
         self.updateLine()
Пример #14
0
 def addExpectedFailure(self, *args):
     TrialReporter.addExpectedFailure(self, *args)
     self.updateLine()
Пример #15
0
 def addSkip(self, *args):
     TrialReporter.addSkip(self, *args)
     self.updateLine()
Пример #16
0
 def addError(self, *args):
     TrialReporter.addError(self, *args)
     self.updateLine()
Пример #17
0
 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()