Last active
August 29, 2015 14:00
-
-
Save LutherBaker/b9ab60c776c83e7d3a6f to your computer and use it in GitHub Desktop.
Calabash Cheatsheet
This file contains hidden or 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
## | |
## update ruby, https://github.com/sstephenson/rbenv | |
## | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
## | |
## list all available versions / install one of them | |
## | |
$ rbenv install -l | |
$ rbenv install 2.1.1 | |
## | |
## get calabash-cucumber | |
## | |
$ sudo gem install calabash-cucumber | |
## | |
## calabashify project (fast track or manual) | |
## | |
$ calabash-ios setup # double check in Xcode | |
## | |
## generate test directory (features) | |
## | |
$ calabash-ios gen | |
## | |
## set environment variable APP_BUNDLE_PATH | |
## | |
$ export APP_BUNDLE_PATH=/Users/<USERNAME>/Library/Developer/Xcode/DerivedData/workspace-xyz/Build/Products/Debug-iphonesimulator/<APPNAME>.app | |
## | |
## run default test | |
## | |
$ export DEVICE_TARGET='iPad Retina (64-bit) - Simulator - iOS 7.1' | |
$ cucumber |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment