mirror of
https://github.com/element-hq/element-android
synced 2024-09-06 17:05:20 +00:00
Merge pull request #5388 from vector-im/michaelk/format_unit_test_results
Format unit test results
This commit is contained in:
commit
57bbec4ffd
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
|
@ -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() &&
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue