From de5fa0e8fc4e6eb8ddd5b2cf9888366f5d3f1c9d Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Sat, 9 Jun 2018 12:52:05 -0700 Subject: [PATCH] test_handler: Add title for test sections which use test_handler. --- tools/server_lib/test_handler.py | 5 +++++ 1 file changed, 5 insertions(+) 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")