diff --git a/tools/server_lib/test_handler.py b/tools/server_lib/test_handler.py index 72d1e3e..fb797ec 100644 --- a/tools/server_lib/test_handler.py +++ b/tools/server_lib/test_handler.py @@ -5,6 +5,7 @@ import sys import argparse import unittest import pytest +import shutil TOOLS_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) os.chdir(os.path.dirname(TOOLS_DIR)) @@ -26,6 +27,10 @@ def handle_input_and_run_tests_for_package(package_name, path_list): help='show verbose output (with pytest)') options = parser.parse_args() + test_session_title = ' Running tests for {} '.format(package_name) + header = test_session_title.center(shutil.get_terminal_size().columns, '#') + print(header) + if options.coverage: import coverage cov = coverage.Coverage(config_file="tools/.coveragerc")