Skip to content

Commit d58daa6

Browse files
committed
[BW] Prepare simulator before first scan
1 parent ab608c6 commit d58daa6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

fastlane/Fastfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,8 @@ lane :test_e2e_mock do |options|
126126

127127
start_sinatra
128128

129-
update_testplan_on_ci(path: 'StreamChatSwiftUITestsAppTests/StreamChatSwiftUITestsApp.xctestplan')
130-
131-
ios = options[:ios]
132-
device = ios && ios != 'latest' ? "#{options[:device]} (#{ios})" : options[:device]
133-
build_for_testing = is_ci && options[:cron].nil?
129+
device = options[:ios] && options[:ios] != 'latest' ? "#{options[:device]} (#{options[:ios]})" : options[:device]
130+
prepare_simulator(device: device, reset: true)
134131

135132
scan_options = {
136133
project: xcode_project,
@@ -140,10 +137,11 @@ lane :test_e2e_mock do |options|
140137
devices: device,
141138
number_of_retries: 3 # TODO: CIS-1737
142139
}
140+
141+
build_for_testing = is_ci && options[:cron].nil?
143142
scan(scan_options.merge(clean: true, build_for_testing: build_for_testing))
144143

145144
if build_for_testing
146-
prepare_simulator(device: device, reset: true)
147145
parallelize_tests_on_ci(
148146
scan: scan_options,
149147
derived_data: lane_context[SharedValues::SCAN_DERIVED_DATA_PATH],

0 commit comments

Comments
 (0)