Beispiel #1
0
 def addSkip(self, test, reason):
     TestResult.addSkip(self, test, reason)
     if self.verbose:
         self.stream.write("SKIPPED: %s [%s]%s" % (test, reason,
                                                   os.linesep))
         self.stream.flush()
     self.countcall()
Beispiel #2
0
 def addSkip(self, test, reason):
     TestResult.addSkip(self, test, reason)
     if self.verbose:
         self.stream.write("SKIPPED: %s [%s]%s" % (test, reason,
                                                   os.linesep))
         self.stream.flush()
     self.countcall()
Beispiel #3
0
 def addSkip(self, test, reason):
     """Called when a test is skipped."""
     TestResult.addSkip(self, test, reason)
     if self.verbose:
         self.stream.write('skipped (%s)\n' % reason)
     else:
         self.stream.write('s')
         self.stream.flush()
Beispiel #4
0
 def addSkip(self, test, reason):
     """Called when a test is skipped."""
     TestResult.addSkip(self, test, reason)
     if self.verbose:
         self.stream.write('skipped (%s)\n' % reason)
     else:
         self.stream.write('s')
         self.stream.flush()
Beispiel #5
0
 def addSkip(self, test, reason):
     TestResult.addSkip(self, test, reason)
     self.skip_count += 1
     self.details.append({"className": '.'.join(test.id().split('.')[:-1]), \
         "methodName": test._testMethodName, \
         "description": test._testMethodDoc,  \
         "spendTime": 0, \
         "status": self.status[self.lan]["Skip"], \
         "log": reason})
 def addSkip(self, test, reason):
     """
     Public method called if a test was skipped.
     
     @param test reference to the test object
     @param reason reason for skipping the test (string)
     """
     TestResult.addSkip(self, test, reason)
     self.parent.write('{0}{1}\n'.format(
         ResponseUTTestSkipped, str((str(test), reason, test.id()))))
Beispiel #7
0
 def addSkip(self, test, reason):
     """
     Public method called if a test was skipped.
     
     @param test reference to the test object
     @param reason reason for skipping the test (string)
     """
     TestResult.addSkip(self, test, reason)
     self.parent.write('{0}{1}\n'.format(
         ResponseUTTestSkipped,
         str((str(test), reason, test.id()))))
 def addSkip(self, test, err):
     self.skip_count += 1
     TestResult.addSkip(self, test, err)
     _exc_str = self.skipped[-1][1]
     output = self.complete_output()
     self.result.append((3, test, output, _exc_str))
     if self.verbosity > 1:
         sys.stderr.write("S  ")
         sys.stderr.write(str(test))
         sys.stderr.write("\n")
     else:
         sys.stderr.write("S")
 def addSkip(self, test, err):
     self.skip_count += 1
     TestResult.addSkip(self, test, err)
     _exc_str = self.skipped[-1][1]
     output = self.complete_output()
     self.result.append((3, test, output, _exc_str))
     if self.verbosity > 1:
         sys.stderr.write('S  ')
         sys.stderr.write(str(test))
         sys.stderr.write('\n')
     else:
         sys.stderr.write('S')
Beispiel #10
0
 def addSkip(self, test, reason):
     """
     Public method called if a test was skipped.
     
     @param test reference to the test object
     @param reason reason for skipping the test (string)
     """
     TestResult.addSkip(self, test, reason)
     self.__dbgClient.sendJsonCommand("ResponseUTTestSkipped", {
         "testname": str(test),
         "reason": reason,
         "id": test.id(),
     })
    def addSkip(self, test, reason):
        TestResult.addSkip(self, test, reason)

        self._steams_write_doc("Skip", test)

        logging.info((self.LANG == 'cn' and "跳过测试: {}\n{}" or "Skip Test: {}\n{}").format(test, reason))

        current_id = str(threading.current_thread().ident)
        self.result_tmp[current_id]["result_code"] = 3
        self.result_tmp[current_id]["style"][self.result_tmp[current_id]['tries']] = 3
        if current_id not in self.skip_set:
            self.skip_count += 1
            self.skip_set.add(current_id)
    def addSkip(self, test, reason):
        TestResult.addSkip(self, test, reason)
        self.stderr_steams.write('Skip\t')
        self.stderr_steams.write(str(test))
        doc = test._testMethodDoc
        if doc:
            self.stderr_steams.write("\t")
            self.stderr_steams.write(doc)
        self.stderr_steams.write("\n")

        GeneralLogger().get_logger().info(
            (self.LANG == 'cn' and "跳过测试: {}\n{}"
             or "Skip Test: {}\n{}").format(test, reason))

        current_id = str(threading.current_thread().ident)
        self.result_tmp[current_id]["result_code"] = 3
        if current_id not in self.skip_set:
            self.skip_count += 1
            self.skip_set.add(current_id)
Beispiel #13
0
 def addSkip(self, test, detail):
     if hasattr(TestResult, 'addSkip'):
         TestResult.addSkip(self, test, detail)
     else:
         self.skips.append((test, detail))
     self.addAResult(test, SKIPPED, 'SKIPPED', detail)
Beispiel #14
0
 def addSkip(self, test, reason):
     TestResult.addSkip(self, test, reason)
     self._print_color("skipped: %s" % reason.strip(), "brown")
Beispiel #15
0
 def addSkip(self, test, detail):
     if hasattr(TestResult, 'addSkip'):
         TestResult.addSkip(self, test, detail)
     else:
         self.skips.append((test, detail))
Beispiel #16
0
 def addSkip(self, test, reason):
     TestResult.addSkip(self, test, reason)
     self._color_print("skipped: %s" % reason, BROWN)
Beispiel #17
0
 def addSkip(self, test, detail):
     if hasattr(TestResult, 'addSkip'):
         TestResult.addSkip(self, test, detail)
     else:
         self.skips.append((test, detail))
Beispiel #18
0
 def addSkip(self, test, reason):
     _TestResult.addSkip(self, test, reason)
     self.printStatus('TEST-SKIP', test)
Beispiel #19
0
 def addSkip(self, test, reason):
     TestResult.addSkip(self, test, reason)
     self.stream.writeln(hilite("skipped: %s" % reason, BROWN))
Beispiel #20
0
 def addSkip(self, test, reason):
     UnitTestResult.addSkip(self, test, reason)
     if self.showAll:
         self._errWrite('skip {0!r}\n'.format(reason))
     elif self.dots:
         self._errWrite('s')
 def addSkip(self, test, detail):
     if hasattr(TestResult, 'addSkip'):
         TestResult.addSkip(self, test, detail)
     else:
         self.skips.append((test, detail))
     self.addAResult(test, SKIPPED, 'SKIPPED', detail)
Beispiel #22
0
 def addSkip(self, test, reason):
     UnitTestResult.addSkip(self, test, reason)
     if self.showAll:
         self._errWrite('skip {0!r}\n'.format(reason))
     elif self.dots:
         self._errWrite('s')
Beispiel #23
0
 def addSkip(self, test, reason):
     _TestResult.addSkip(self, test, reason)
     self.printStatus('TEST-SKIP', test)
Beispiel #24
0
 def addSkip(self, test, reason):
     TestResult.addSkip(self, test, reason)
     self._color_print("skipped: %s" % reason, BROWN)