Skip to content

Commit 619f311

Browse files
Fix CI: broaden xctestrun search and show raw test output
Remove xcpretty from test-without-building so failures are visible in CI logs. Broaden .xctestrun glob pattern and add diagnostic output when the file is not found. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 355459e commit 619f311

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,16 @@ jobs:
4242
- name: Run tests
4343
run: |
4444
set -o pipefail
45-
XCTESTRUN=$(find build/DerivedData -name "Pika_*.xctestrun" | head -1)
45+
XCTESTRUN=$(find build/DerivedData -name "*.xctestrun" | head -1)
46+
echo "Using xctestrun: $XCTESTRUN"
47+
if [ -z "$XCTESTRUN" ]; then
48+
echo "Error: no .xctestrun file found"
49+
find build/DerivedData -type f -name "*.xctestrun" || true
50+
exit 1
51+
fi
4652
xcodebuild test-without-building \
4753
-xctestrun "$XCTESTRUN" \
48-
-destination 'platform=macOS' \
49-
2>&1 | xcpretty --color
54+
-destination 'platform=macOS'
5055
5156
- name: Upload test results
5257
if: always()

0 commit comments

Comments
 (0)