Skip to content

Commit

Permalink
CI: erase simulator before Cucumber tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoody committed Jul 31, 2017
1 parent 505d367 commit f0e6f5e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion features/support/01_launch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@ def self.launcher=(launcher)
# Add launch options here.
}

if RunLoop::Environment.ci?
target = RunLoop::Environment.device_target
device = RunLoop::Device.device_with_identfier(target)
RunLoop::CoreSimulator.quit_simulator
RunLoop::CoreSimulator.erase(device)
core_sim = RunLoop::CoreSimulator.new(device, nil)
core_sim.launch_simulator
end

launcher.relaunch(options)
launcher.calabash_notify(self)
end

After do |scenario|
Expand Down

0 comments on commit f0e6f5e

Please sign in to comment.