Esempio n. 1
0
 def __init__(self, *args, **kwargs):
     self.marionette = kwargs.pop('marionette')
     TestResultCollection.__init__(self, 'MarionetteTest')
     self.passed = 0
     self.testsRun = 0
     self.result_modifiers = []  # used by mixins to modify the result
     pid = kwargs.pop('b2g_pid')
     if pid:
         if B2GTestResultMixin not in self.__class__.__bases__:
             bases = [b for b in self.__class__.__bases__]
             bases.append(B2GTestResultMixin)
             self.__class__.__bases__ = tuple(bases)
         B2GTestResultMixin.__init__(self, b2g_pid=pid)
     unittest._TextTestResult.__init__(self, *args, **kwargs)
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     self.marionette = kwargs.pop('marionette')
     TestResultCollection.__init__(self, 'MarionetteTest')
     self.passed = 0
     self.testsRun = 0
     self.result_modifiers = [] # used by mixins to modify the result
     pid = kwargs.pop('b2g_pid')
     if pid:
         if B2GTestResultMixin not in self.__class__.__bases__:
             bases = [b for b in self.__class__.__bases__]
             bases.append(B2GTestResultMixin)
             self.__class__.__bases__ = tuple(bases)
         B2GTestResultMixin.__init__(self, b2g_pid=pid)
     unittest._TextTestResult.__init__(self, *args, **kwargs)
Esempio n. 3
0
 def __init__(self, *args, **kwargs):
     self.marionette = kwargs.pop("marionette")
     TestResultCollection.__init__(self, "MarionetteTest")
     self.passed = 0
     self.testsRun = 0
     self.result_modifiers = []  # used by mixins to modify the result
     pid = kwargs.pop("b2g_pid")
     logcat_stdout = kwargs.pop("logcat_stdout")
     if pid:
         if B2GTestResultMixin not in self.__class__.__bases__:
             bases = [b for b in self.__class__.__bases__]
             bases.append(B2GTestResultMixin)
             self.__class__.__bases__ = tuple(bases)
         B2GTestResultMixin.__init__(self, b2g_pid=pid, logcat_stdout=logcat_stdout)
     StructuredTestResult.__init__(self, *args, **kwargs)
Esempio n. 4
0
 def __init__(self, *args, **kwargs):
     # stupid hack because _TextTestRunner doesn't accept **kwargs
     b2g_pid = kwargs.pop('b2g_pid')
     MarionetteTestResult.__init__(self, *args, **kwargs)
     kwargs['b2g_pid'] = b2g_pid
     B2GTestResultMixin.__init__(self, *args, **kwargs)