We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c847ae2 commit 4031f01Copy full SHA for 4031f01
.github/scripts/extract-skipped-tests.sh
@@ -32,7 +32,8 @@ for file in phpunit-results-*.xml; do
32
fi
33
34
# Extract skipped tests in class::method format
35
- SKIPPED_TESTS=$(xmllint --format "$file" 2>/dev/null | grep -B1 "<skipped" | grep "testcase" | sed -n 's/.*name="\([^"]*\)".*class="\([^"]*\)".*/\2::\1/p' || true)
+ # Use xmllint to query the XML directly for skipped testcases
36
+ SKIPPED_TESTS=$(xmllint --xpath "//testcase[skipped]" "$file" 2>/dev/null | sed -n 's/.*name="\([^"]*\)".*class="\([^"]*\)".*/\2::\1/p' || true)
37
38
echo "DEBUG: Extracted skipped tests: '$SKIPPED_TESTS'"
39
0 commit comments