Skip to content

ci: run the iOS integration tests through XCTest (flutter/flutter#181771) - #16

Merged
noeGnh merged 1 commit into
masterfrom
ci/ios-xctest
Oct 4, 2026
Merged

noeGnh merged 1 commit into
masterfrom
ci/ios-xctest

Conversation

@blckntr

@blckntr blckntr commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

Same approach as filmkit_picker: the iOS integration tests no longer go through flutter test. That command often misses the app's VM service on simulators (flutter/flutter#181771). In filmkit it needed the watchdog and retries; in filmkit_picker it failed 6 times out of 6.

  • example/ios/RunnerTests/IntegrationTests.m (INTEGRATION_TEST_IOS_RUNNER) is added to the RunnerTests target, next to the native Swift tests.
  • CI:
    • flutter build ios --config-only integration_test/all_test.dart;
    • xcodebuild build-for-testing;
    • test-without-building, without -quiet, so the Dart progress (flutter: ...) shows in the log.
    • One run covers the native RunnerTests and the 26 integration tests.
    • .github/scripts/ios_integration_tests.sh (the watchdog) is removed.
  • Fix in all_test.dart: IntegrationTestWidgetsFlutterBinding.ensureInitialized() is now called at the top level. Each test file called it inside its group, so the end-of-run report only covered the first group. XCTest then saw 9 tests out of 26. This made no difference with flutter test.
  • README: how to run them; native tests alone with -only-testing:RunnerTests/RunnerTests.

Checked locally on the iOS 27 simulator: ** TEST EXECUTE SUCCEEDED **, 26 IntegrationTests and 8 ExportGeometryTests passed.

@noeGnh
noeGnh merged commit 293e2af into master Oct 4, 2026
4 checks passed
@noeGnh
noeGnh deleted the ci/ios-xctest branch October 4, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants