Merge pull request #5388 from vector-im/michaelk/format_unit_test_results

Format unit test results
This commit is contained in:
Michael Kaye 2022-03-04 15:29:15 +00:00 committed by GitHub
commit 57bbec4ffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -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() &&

View file

@ -9,11 +9,10 @@ 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)
root = tree.getroot()