Skip to content

Commit f0e6f5e

Browse files
committed
CI: erase simulator before Cucumber tests
1 parent 505d367 commit f0e6f5e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

features/support/01_launch.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ def self.launcher=(launcher)
2424
# Add launch options here.
2525
}
2626

27+
if RunLoop::Environment.ci?
28+
target = RunLoop::Environment.device_target
29+
device = RunLoop::Device.device_with_identfier(target)
30+
RunLoop::CoreSimulator.quit_simulator
31+
RunLoop::CoreSimulator.erase(device)
32+
core_sim = RunLoop::CoreSimulator.new(device, nil)
33+
core_sim.launch_simulator
34+
end
35+
2736
launcher.relaunch(options)
28-
launcher.calabash_notify(self)
2937
end
3038

3139
After do |scenario|

0 commit comments

Comments
 (0)