Created
January 15, 2016 22:29
-
-
Save Krumelur/0ae4f2ba41d734c0cd53 to your computer and use it in GitHub Desktop.
Various thing about Calabash I wish I had known earlier...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
• Sandbox download: https://github.com/calabash/install | |
• Directly install Sandbox from Terminal: curl -sSL https://raw.githubusercontent.com/calabash/install/master/install-osx.sh | bash | |
• List of Calabash environment variables can be found at: http://calabashapi.xamarin.com/ios/file.ENVIRONMENT_VARIABLES.html | |
• List all iOS devices in Terminal to get "DEVICE_TARGET": instruments -s devices | |
• Set Simulator ID in one go when running a test: APP_BUNDLE_PATH=TaskyiOS.app DEVICE_TARGET="iPhone 6s (9.2)" cucumber | |
• Show Calabash iOS version: calabash-ios version | |
• Update to latest Calabash (run in Calabash Sandbox): gem install calabash-cucumber | |
• Get Sandbox Version: calabash-sandbox version | |
• Check what is using the Calabash Server's port: lsof -wni tcp:37265 | |
○ If something uses the port You can grab the `pid` and `kill -9` it | |
○ Sometimes "iproxy" uses the port. Used to communicate to the device by UITest. Can be killed using "killal iproxy" | |
• To see if the Calabash Server is running, you can open the Simulator logs (Debug -> Open System Logs) and you should see something like: | |
Jan 15 23:06:43 iMacRR TaskyiOS[55313]: DEBUG CalabashServer:222 | Creating the server: <LPHTTPServer: 0x7d218430> | |
Jan 15 23:06:43 iMacRR TaskyiOS[55313]: DEBUG CalabashServer:223 | Calabash iOS server version: CALABASH VERSION: 0.16.4 | |
Jan 15 23:06:43 iMacRR TaskyiOS[55313]: DEBUG CalabashServer:226 | App Base SDK: iphonesimulator9.1 | |
Jan 15 23:06:43 iMacRR TaskyiOS[55313]: DEBUG CalabashServer:254 | IPHONE_SIMULATOR_ROOT: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment