Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0c6c265

Browse files
authored
Disable iOS ScenariosTests suite (#21080)
This disables the macOS Scenarios app tests until a fix for the current flakiness is found. This also reverts commit 55d447a where one test was previously disabled. However, another started failing soon after, so instead we disable the whole suite here.
1 parent 55d447a commit 0c6c265

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

testing/scenario_app/ios/Scenarios/ScenariosTests/AppLifecycleTests.m

+1-3
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,7 @@ - (void)testVisibleFlutterViewControllerRespondsToApplicationLifecycle {
227227
[engine setViewController:nil];
228228
}
229229

230-
// TODO(cbracken): re-enable this test by removing the skip_ prefix once the source of its flakiness
231-
// has been identified. https://github.com/flutter/flutter/issues/61620
232-
- (void)skip_testFlutterViewControllerDetachingSendsApplicationLifecycle {
230+
- (void)testFlutterViewControllerDetachingSendsApplicationLifecycle {
233231
XCTestExpectation* engineStartedExpectation = [self expectationWithDescription:@"Engine started"];
234232

235233
// Let the engine finish booting (at the end of which the channels are properly set-up) before

testing/scenario_app/run_ios_tests.sh

+11-6
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,14 @@ if [[ $# -eq 1 ]]; then
3333
FLUTTER_ENGINE="$1"
3434
fi
3535

36-
cd ios/Scenarios
37-
set -o pipefail && xcodebuild -sdk iphonesimulator \
38-
-scheme Scenarios \
39-
-destination 'platform=iOS Simulator,name=iPhone 8' \
40-
test \
41-
FLUTTER_ENGINE="$FLUTTER_ENGINE"
36+
echo "iOS Scenarios tests currently disabled due to flakiness"
37+
echo "See: https://github.com/flutter/flutter/issues/61620"
38+
39+
# TODO(cbracken): re-enable when
40+
# https://github.com/flutter/flutter/issues/61620 is fixed.
41+
# cd ios/Scenarios
42+
# set -o pipefail && xcodebuild -sdk iphonesimulator \
43+
# -scheme Scenarios \
44+
# -destination 'platform=iOS Simulator,name=iPhone 8' \
45+
# test \
46+
# FLUTTER_ENGINE="$FLUTTER_ENGINE"

0 commit comments

Comments
 (0)