MCPcopy Create free account
hub / github.com/cztomczak/cefpython / _print_summary

Method _print_summary

unittests/_test_runner.py:252–275  ·  view source on GitHub ↗

Print summary and exit.

(self)

Source from the content-addressed store, hash-verified

250 self._import_errors.addTest(level2_suite)
251
252 def _print_summary(self):
253 # type: () -> None
254 """Print summary and exit."""
255 print("-"*70)
256 print("[_test_runner.py] CEF Python {ver}"
257 .format(ver=self.cefpython_version))
258 print("[_test_runner.py] Python {ver} {arch}"
259 .format(ver=platform.python_version(),
260 arch=platform.architecture()[0]))
261 print("[_test_runner.py] Ran {ran} tests in total"
262 .format(ran=self.ran))
263 if self.errors or self.failures:
264 failed_str = "[_test_runner.py] FAILED ("
265 if self.failures:
266 failed_str += ("failures="+str(self.failures))
267 if self.errors:
268 if self.failures:
269 failed_str += ", "
270 failed_str += ("errors="+str(self.errors))
271 failed_str += ")"
272 print(failed_str)
273 else:
274 print("[_test_runner.py] OK all unit tests succeeded")
275 self._exit()
276
277 def _exit(self):
278 # type: () -> None

Callers 1

Calls 1

_exitMethod · 0.95

Tested by

no test coverage detected