Sha256: 27d3b10bc8a154f731c649afac15bbf52958e752cb92a40b22a24f58fc999d90
Contents?: true
Size: 1.67 KB
Versions: 10
Compression:
Stored size: 1.67 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 # # www.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'] || 'iphone') 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? and ENV['NO_STOP'].nil? Calabash::Cucumber::SimulatorHelper.stop end end
Version data entries
10 entries across 10 versions & 1 rubygems