From cb00a668fe48b0d5f0ea77ecaaf1a9848719341a Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Tue, 1 Mar 2022 11:42:54 +0000 Subject: [PATCH 1/3] Format unit test results as well --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d6e194916b..3d24108084 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,6 +31,9 @@ jobs: ${{ runner.os }}-gradle- - name: Run unit tests run: ./gradlew clean test $CI_GRADLE_ARG_PROPERTIES -PallWarningsAsErrors=false --stacktrace + - name: Format unit test results + if: always() + run: python3 ./tools/ci/render_test_output.py unit ./**/build/test-results/**/*.xml - name: Publish Unit Test Results uses: EnricoMi/publish-unit-test-result-action@v1 if: always() && From 7837d1d6d65e4287152cc7f7105253ba7575369d Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Wed, 2 Mar 2022 10:05:07 +0000 Subject: [PATCH 2/3] Wrap up the argument list; it can be long --- tools/ci/render_test_output.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/ci/render_test_output.py b/tools/ci/render_test_output.py index 48dd3987a3..9df3170058 100755 --- a/tools/ci/render_test_output.py +++ b/tools/ci/render_test_output.py @@ -9,9 +9,9 @@ import sys import xml.etree.ElementTree as ET suitename = sys.argv[1] xmlfiles = sys.argv[2:] - -print(f"Arguments: {sys.argv}") - +print("::group::Arguments") +print(f"{sys.argv}") +print("::endgroup::") for xmlfile in xmlfiles: print(f"Handling: {xmlfile}") tree = ET.parse(xmlfile) From 2d5b25cfad69631bc3a7d807a3d454ddfa4efb77 Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Thu, 3 Mar 2022 20:39:41 +0000 Subject: [PATCH 3/3] Remove the printing of file name to the log as it's doubling up information. --- tools/ci/render_test_output.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/ci/render_test_output.py b/tools/ci/render_test_output.py index 9df3170058..1e7940ce04 100755 --- a/tools/ci/render_test_output.py +++ b/tools/ci/render_test_output.py @@ -13,7 +13,6 @@ print("::group::Arguments") print(f"{sys.argv}") print("::endgroup::") for xmlfile in xmlfiles: - print(f"Handling: {xmlfile}") tree = ET.parse(xmlfile) root = tree.getroot()