Sha256: a70f62472e38c573321b7d6b1564f327ede031927c360f5f8c47457354c0e59c
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
######################################## # # # Important Note # # # # When running calabash-ios tests at # # www.lesspainful.com # # this file will be overwritten by # # a file which automates # # app launch on devices. # # # # Don't rely on this file being # # present when running at # # lesspainful.com. # # # # Only put stuff here to automate # # iOS Simulator. # # # # You can put your app bundle path # # for automating simulator app start: # # Uncomment APP_BUNDLE_PATH =.. # # # ######################################## require 'calabash-cucumber/launch/simulator_helper' # Uncomment and replace ?? appropriately # This should point to your Simulator build # which includes calabash framework # this is usually the Calabash build configuration # of your production target. #APP_BUNDLE_PATH = "~/Library/Developer/Xcode/DerivedData/??/Build/Products/Calabash-iphonesimulator/??.app"" # def relaunch if ENV['NO_LAUNCH'].nil? Calabash::Cucumber::SimulatorHelper.relaunch(app_path,ENV['SDK_VERSION'],ENV['DEVICE']) end end def app_path ENV['APP_BUNDLE_PATH'] || (defined?(APP_BUNDLE_PATH) && APP_BUNDLE_PATH) end ##TODO Reset simulator between features! Before do |scenario| relaunch end at_exit do if ENV['NO_LAUNCH'].nil? Calabash::Cucumber::SimulatorHelper.stop end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calabash-cucumber-0.9.19 | features-skeleton/support/launch.rb |