From: Scott Gasch Date: Tue, 18 Oct 2022 17:22:54 +0000 (-0700) Subject: Add an overall runtime line to the final report in run_tests.py. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=1bbb406ec19cf92b6b2a376f57749ed044ed008b;p=pyutils.git Add an overall runtime line to the final report in run_tests.py. --- diff --git a/tests/run_tests.py b/tests/run_tests.py index 3b74ccb..3bc2a11 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -597,9 +597,10 @@ def main() -> Optional[int]: print(f' {color}{now - start_time:.1f}s{ansi.reset()}', end='\r') time.sleep(0.1) - print(f'{ansi.clear_line()}Final Report:') + print(f'{ansi.clear_line()}{ansi.underline()}Final Report:{ansi.reset()}') if config.config['coverage']: code_coverage_report() + print(f'Test suite runtime: {time.time() - start_time:.1f}s') total_problems = test_results_report(results) if total_problems > 0: logging.error(