From d9cfd905248a7ef74826576978348600a372af5f Mon Sep 17 00:00:00 2001 From: David Spickett Date: Thu, 10 Apr 2025 09:17:25 +0000 Subject: [PATCH] [ci] Improve wording in CI test reports We weren't saying where to click, make it clear you click on a test name. --- .ci/generate_test_report_lib.py | 2 +- .ci/generate_test_report_lib_test.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.ci/generate_test_report_lib.py b/.ci/generate_test_report_lib.py index 73942caeb677..b05a77febb3b 100644 --- a/.ci/generate_test_report_lib.py +++ b/.ci/generate_test_report_lib.py @@ -92,7 +92,7 @@ def generate_report( ] ) elif failures: - report.extend(["", "## Failed Tests", "(click to see output)"]) + report.extend(["", "## Failed Tests", "(click on a test name to see its output)"]) for testsuite_name, failures in failures.items(): report.extend(["", f"### {testsuite_name}"]) diff --git a/.ci/generate_test_report_lib_test.py b/.ci/generate_test_report_lib_test.py index 0366f8dc70bb..fad6ab2bec89 100644 --- a/.ci/generate_test_report_lib_test.py +++ b/.ci/generate_test_report_lib_test.py @@ -2,6 +2,9 @@ # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# To run these tests: +# python -m unittest generate_test_report_lib_test.py + import unittest from io import StringIO from textwrap import dedent @@ -150,7 +153,7 @@ class TestReports(unittest.TestCase): * 2 tests failed ## Failed Tests - (click to see output) + (click on a test name to see its output) ### Bar
@@ -182,7 +185,7 @@ class TestReports(unittest.TestCase): * 2 tests failed ## Failed Tests - (click to see output) + (click on a test name to see its output) ### ABC