Merge pull request #5388 from vector-im/michaelk/format_unit_test_results
Format unit test results
This commit is contained in:
commit
57bbec4ffd
|
@ -31,6 +31,9 @@ jobs:
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: ./gradlew clean test $CI_GRADLE_ARG_PROPERTIES -PallWarningsAsErrors=false --stacktrace
|
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
|
- name: Publish Unit Test Results
|
||||||
uses: EnricoMi/publish-unit-test-result-action@v1
|
uses: EnricoMi/publish-unit-test-result-action@v1
|
||||||
if: always() &&
|
if: always() &&
|
||||||
|
|
|
@ -9,11 +9,10 @@ import sys
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
suitename = sys.argv[1]
|
suitename = sys.argv[1]
|
||||||
xmlfiles = sys.argv[2:]
|
xmlfiles = sys.argv[2:]
|
||||||
|
print("::group::Arguments")
|
||||||
print(f"Arguments: {sys.argv}")
|
print(f"{sys.argv}")
|
||||||
|
print("::endgroup::")
|
||||||
for xmlfile in xmlfiles:
|
for xmlfile in xmlfiles:
|
||||||
print(f"Handling: {xmlfile}")
|
|
||||||
tree = ET.parse(xmlfile)
|
tree = ET.parse(xmlfile)
|
||||||
|
|
||||||
root = tree.getroot()
|
root = tree.getroot()
|
||||||
|
|
Loading…
Reference in New Issue