问题
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
回答1:
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.
来源:https://stackoverflow.com/questions/24075107/how-to-pass-in-timeout-for-cucumber-command-as-in-start-test-server-in-backgroun