calabash / run_loop

The bridge between Calabash iOS and Xcode command-line tools like instruments and simctl.
Other
32 stars 41 forks source link

Fix unstable simulators count test #735

Closed vsafonkin closed 5 years ago

vsafonkin commented 5 years ago

We have found problem with Instruments and Simctl agree on the simulator count test, this test randomly fails, but always pass when we run single test.

It fails because xcode instruments simulators count is cached and not equal xcode simctl simulators count.

As fix we have initialized new instances of classes Instruments and Simctl to avoid caching.

Note: this issue randomly reproduces on all xcode versions.