示例#1
0
 def add_fails_or_errors(self, test):
     if self.report_on:
         if test.id() == 'nose.failure.Failure.runTest':
             print ">>> ERROR: Could not locate tests to run!"
             print ">>> The Test Report WILL NOT be generated!"
             self.import_error = True
             return
         self.failures.append(test.id())
         br = self.options.browser
         self.page_results_list.append(
             report_helper.process_failures(test, self.test_count, br))
示例#2
0
 def add_fails_or_errors(self, test):
     if self.report_on:
         self.duration = str("%0.3fs" % (float(time.time()) - float(self.start_time)))
         if test.id() == "nose.failure.Failure.runTest":
             print(">>> ERROR: Could not locate tests to run!")
             print(">>> The Test Report WILL NOT be generated!")
             self.import_error = True
             return
         self.failures.append(test.id())
         br = self.options.browser
         self.page_results_list.append(
             report_helper.process_failures(test, self.test_count, br, self.duration)
         )
示例#3
0
 def add_fails_or_errors(self, test):
     if self.report_on:
         self.duration = str(
             "%0.3fs" % (float(time.time()) - float(self.duration)))
         if test.id() == 'nose.failure.Failure.runTest':
             print(">>> ERROR: Could not locate tests to run!")
             print(">>> The Test Report WILL NOT be generated!")
             self.import_error = True
             return
         self.failures.append(test.id())
         br = self.options.browser
         self.page_results_list.append(
             report_helper.process_failures(
                 test, self.test_count, br, self.duration))