You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
if swift package resolve >/dev/null 2>&1 && xcrun swift -package-path . -I .build/debug -c -o /tmp/testing_check /tmp/testing_check.swift >/dev/null 2>&1; then
297
+
echo "✅ Swift Testing framework compilation test passed with project context"
298
+
elif xcrun swift -c -o /tmp/testing_check /tmp/testing_check.swift >/dev/null 2>&1; then
299
+
echo "✅ Swift Testing framework compilation test passed with basic context"
300
+
else
301
+
echo "::warning::Swift Testing framework compilation test failed - may impact test execution but not critical"
302
+
echo "::warning::This is expected if Swift Testing is only available in the Xcode build context"
303
+
fi
304
+
305
+
# Clean up
306
+
rm -f /tmp/testing_check.swift /tmp/testing_check
307
+
308
+
- name: Run Tests
309
+
continue-on-error: true
310
+
run: |
311
+
echo "::group::Running Tests with Swift Testing Framework"
312
+
echo "Running test suite with Swift Testing framework support..."
echo "::warning::Main app tests failed with exit code $MAIN_TEST_EXIT_CODE"
334
+
else
335
+
echo "✅ Main app tests completed successfully"
336
+
fi
337
+
338
+
# Check if test results were generated
339
+
if [ -d "test-results/CodeLooper.xcresult" ]; then
340
+
echo "✅ Test results bundle created successfully"
341
+
# Extract basic test summary
342
+
echo "Test results summary:"
343
+
xcrun xcresulttool get --format json --path test-results/CodeLooper.xcresult | head -20 || true
344
+
else
345
+
echo "::warning::No test results bundle was created"
346
+
fi
347
+
348
+
# Run subpackage tests (these use XCTest, not Swift Testing)
349
+
echo "::group::Running Subpackage Tests"
350
+
351
+
echo "Running AXorcist tests (XCTest-based)..."
352
+
cd AXorcist
353
+
swift test --enable-code-coverage > ../test-results/axorcist-output.log 2>&1 || echo "::warning::AXorcist tests failed - these use XCTest framework which may have integration dependencies"
354
+
cd ..
355
+
356
+
echo "Running DesignSystem tests..."
357
+
cd DesignSystem
358
+
swift test --enable-code-coverage --verbose > ../test-results/designsystem-output.log 2>&1 || echo "::warning::DesignSystem tests failed"
359
+
cd ..
360
+
361
+
echo "::endgroup::"
362
+
363
+
# Summary
364
+
echo "Test execution completed. Main tests exit code: $MAIN_TEST_EXIT_CODE"
365
+
echo "::endgroup::"
366
+
253
367
- name: Build, Sign, and Optionally Notarize macOS App
0 commit comments