Beispiel #1
0
 def end_tests(self):
     """
     Called once after all tests are executed.
     """
     TestResult.end_tests(self)
     self.json.update({
         'total': len(self.json['tests']),
         'pass': len(self.passed),
         'errors': len(self.errors),
         'failures': len(self.failed),
         'skip': len(self.skipped),
         'time': self.total_time
     })
     self._render_report()
Beispiel #2
0
 def end_tests(self):
     """
     Record an end tests event.
     """
     TestResult.end_tests(self)
     values = {'tests': self.tests_total,
               'errors': len(self.errors),
               'failures': len(self.failed),
               'skip': len(self.skipped),
               'total_time': self.total_time}
     self.xml.end_testsuite(**values)
     contents = self.xml.get_contents()
     if self.output == '-':
         self.stream.notify(event='minor', msg=contents)
     else:
         with open(self.output, 'w') as xunit_output:
             xunit_output.write(contents)
Beispiel #3
0
 def end_tests(self):
     """
     Called once after all tests are executed.
     """
     TestResult.end_tests(self)
     self.json.update({
         'total': self.tests_total,
         'pass': len(self.passed),
         'errors': len(self.errors),
         'failures': len(self.failed),
         'skip': len(self.skipped),
         'time': self.total_time
     })
     self.json = json.dumps(self.json)
     if self.args.json_output == '-':
         self.view.notify(event='minor', msg=self.json)
     else:
         self._save_json()