mirror of https://github.com/razor-ai/soup.git
Fix CI badge: read test count from testsuite element, not root
pytest junitxml wraps results in <testsuites><testsuite tests="N">, the count is on the child element, not the root. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f467dc8014
commit
5de18dc325
|
|
@ -35,7 +35,8 @@ jobs:
|
|||
TESTS=$(python -c "
|
||||
import xml.etree.ElementTree as ET
|
||||
root = ET.parse('report.xml').getroot()
|
||||
print(root.attrib.get('tests', '0'))
|
||||
ts = root.find('testsuite')
|
||||
print(ts.attrib.get('tests', '0') if ts is not None else root.attrib.get('tests', '0'))
|
||||
")
|
||||
echo "Test count: $TESTS"
|
||||
curl -s -o /dev/null -w "%{http_code}" \
|
||||
|
|
|
|||
Loading…
Reference in New Issue