예제 #1
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)
 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 startTest(self, test):
     self.testsRun += 1
     TeamcityTestResult.startTest(self, test)
예제 #4
0
 def get_test_id(test):
     major, minor = sys.version_info[:2]
     interpreter_id = 'py{}{}'.format(major, minor)
     return '{}.{}'.format(interpreter_id,
                           TeamcityTestResult.get_test_id(test))
 def startTest(self, test):
     self.testsRun += 1
     TeamcityTestResult.startTest(self, test)