After digging around for a few days for the launch issue, I found out if I use
start_test_server_in_background(:timeout => 300)
the app will be fully launched successfully.
So for calabash command, the question become, how to pass in the timeout for cucumber command line?
I tried the following for cucumber version 0.9.167 and it's not working.
$ CONNECT_TIMEOUT=300 DEBUG=1 CALABASH_FULL_CONSOLE_OUTPUT=1 cucumber
CONNECT_TIMEOUT
<== controls how long to wait for the server to respond to an http request not how long it wait for a launch.Update your
features/support/01_launch.rb
to use:Calabash::Cucumber::Launcher.relaunch({:timeout => 300})
I am suspicious that it takes more than 30s to launch your app.
If at all possible update to latest version of calabash.
UPDATE: The calabash environment docs have been posted.
http://calabashapi.xamarin.com/ios/
Beware of tweaking the variables in the Developer section.