89
89
- image : cirrusci/flutter:<<parameters.version>>
90
90
steps :
91
91
- advanced-checkout/shallow-checkout
92
+ - run :
93
+ name : Remove `patrol:` from example/pubspec.yaml
94
+ command : |
95
+ sed -i.bak '/^\s*patrol:/d' example/pubspec.yaml
92
96
- install_flutter_and_dart_packages :
93
97
generate_pigeons : true
94
98
- run : flutter test --coverage
@@ -122,9 +126,9 @@ jobs:
122
126
- setup_flutter
123
127
- setup_patrol
124
128
- android/start-emulator-and-run-tests :
129
+ run-tests-working-directory : example
125
130
additional-avd-args : --device 3
126
131
system-image : system-images;android-33;default;x86_64
127
- post-emulator-launch-assemble-command : cd example
128
132
test-command : patrol test -t integration_test/ --verbose
129
133
130
134
test_ios :
@@ -146,6 +150,7 @@ jobs:
146
150
-resultBundlePath coverage/result.xcresult \
147
151
-sdk iphonesimulator \
148
152
-destination 'platform=iOS Simulator,name=iPhone 15 Pro Max,OS=17.2' \
153
+ -skip-testing:RunnerUITests \
149
154
test | xcpretty
150
155
151
156
e2e_ios_patrol :
@@ -156,6 +161,21 @@ jobs:
156
161
- advanced-checkout/shallow-checkout
157
162
- setup_ios
158
163
- setup_patrol
164
+ - run :
165
+ name : Boot First Available Simulator and Print Info
166
+ command : |
167
+ # Find the first available shutdown simulator
168
+ SIM_LINE=$(xcrun simctl list devices available | grep -m1 "Shutdown")
169
+ SIM_NAME=$(echo "$SIM_LINE" | awk -F '[()]' '{print $1}' | xargs)
170
+ DEVICE_ID=$(echo "$SIM_LINE" | awk -F '[()]' '{print $2}')
171
+
172
+ echo "Booting simulator: $SIM_NAME ($DEVICE_ID)"
173
+ xcrun simctl boot "$DEVICE_ID"
174
+
175
+ sleep 10
176
+
177
+ # Confirm booted device
178
+ xcrun simctl list | grep "$DEVICE_ID"
159
179
- run :
160
180
name : Run E2E Tests
161
181
no_output_timeout : 30m
0 commit comments