CI: list the failing tests when the gate fails
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,3 +15,14 @@ jobs:
|
||||
with: { packages: 'platform-tools' }
|
||||
- name: Build, unit tests (provider contract suite included) and lint
|
||||
run: ORBIT_TOOLING=/nonexistent tools/verify.sh
|
||||
- name: Which tests failed
|
||||
if: failure()
|
||||
run: |
|
||||
grep -l "<failure" android/app/build/test-results/testDebugUnitTest/*.xml 2>/dev/null | while read f; do
|
||||
python3 - "$f" <<'PY' || true
|
||||
import sys, xml.etree.ElementTree as ET
|
||||
for case in ET.parse(sys.argv[1]).getroot().iter("testcase"):
|
||||
for f in case.findall("failure"):
|
||||
print(case.get("classname"), case.get("name"), "::", (f.get("message") or "")[:300])
|
||||
PY
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user