File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed
Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,34 @@ echo "CONFIG_ID=${CONFIG_ID}" >> "$GITHUB_OUTPUT"
1515# Extract skipped tests from XML files using xmllint
1616SKIPPED_FOUND=false
1717
18+ echo " DEBUG: Looking for XML files matching: phpunit-results-*.xml"
19+ ls -la phpunit-results-* .xml 2> /dev/null || echo " DEBUG: No XML files found"
20+
1821for file in phpunit-results-* .xml; do
1922 if [ -f " $file " ]; then
23+ echo " DEBUG: Processing file: $file "
24+
25+ # Check if file contains skipped tests
26+ SKIPPED_COUNT=$( grep -c " <skipped" " $file " 2> /dev/null || echo " 0" )
27+ echo " DEBUG: Found $SKIPPED_COUNT skipped elements in $file "
28+
29+ if [ " $SKIPPED_COUNT " -gt 0 ]; then
30+ echo " DEBUG: Sample skipped elements:"
31+ grep -A2 -B2 " <skipped" " $file " | head -10
32+ fi
33+
2034 # Extract skipped tests in class::method format
2135 SKIPPED_TESTS=$( xmllint --format " $file " 2> /dev/null | grep -B1 " <skipped" | grep " testcase" | sed -n ' s/.*name="\([^"]*\)".*classname="\([^"]*\)".*/\2::\1/p' || true)
2236
37+ echo " DEBUG: Extracted skipped tests: '$SKIPPED_TESTS '"
38+
2339 if [ -n " $SKIPPED_TESTS " ]; then
2440 echo " $SKIPPED_TESTS " >> " skipped-tests-${CONFIG_ID} .txt"
2541 SKIPPED_FOUND=true
42+ echo " DEBUG: Added skipped tests to skipped-tests-${CONFIG_ID} .txt"
2643 fi
44+ else
45+ echo " DEBUG: File $file does not exist or is not readable"
2746 fi
2847done
2948
Original file line number Diff line number Diff line change @@ -332,8 +332,12 @@ jobs:
332332
333333 - name : Analyze skipped tests
334334 run : |
335- cd skipped-tests-artifacts
336- ../.github/scripts/analyze-skipped-tests.sh
335+ if [ -d "skipped-tests-artifacts" ] && [ "$(ls -A skipped-tests-artifacts 2>/dev/null)" ]; then
336+ cd skipped-tests-artifacts
337+ ../.github/scripts/analyze-skipped-tests.sh
338+ else
339+ echo "No skipped test artifacts found - all configurations had no skipped tests"
340+ fi
337341
338342 slack-notifications :
339343 name : Slack Notifications
You can’t perform that action at this time.
0 commit comments