calabash / calabash-ios

Calabash for iOS
Other
1.81k stars 368 forks source link

Workaround for cases when simulator stuck on boot #1405

Closed JoeSSS closed 5 years ago

JoeSSS commented 5 years ago

We've noticed that sometimes iOS simulators stuck on boot (either progress bar or the Apple logo).

These cases are quite expensive when you run several tests in a row (especially for CI), as Calabash seems to not being able to detect this state and it takes a lot of time to start a new test.

The workaround is that Simulator will quit as soon as this situation happens, so the next test will not try to use "broken" simulator blindly but start the Simulator process again.

JoeSSS commented 5 years ago

@jmoody I'm aware that there could be more "elegant" way of fixing that. But tbh, I didn't find a better place after navigation through the project. Please guide me if you see a better possibility :)

jmoody commented 5 years ago

Can we handle this in run-loop?

jmoody commented 5 years ago

We definitely want to solve this in run-loop.