Sha256: 98213043ca546faf0650cf3d92a4e8e7f86e02ef0b48e512fd8393c0ee21c308

Contents?: true

Size: 1.48 KB

Versions: 15

Compression:

Stored size: 1.48 KB

Contents

########################################
#                                      #
#       Important Note                 #
#                                      #
#   When running calabash-ios tests at #
#   www.xamarin.com/test-cloud         #
#   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            #
#   Xamarin Test Cloud                 #
#                                      #
########################################

require 'calabash-cucumber/launcher'


# APP_BUNDLE_PATH = "#{ENV['HOME']}/Library/Developer/Xcode/DerivedData/??/Build/Products/Calabash-iphonesimulator/??.app"
# You may uncomment the above to overwrite the APP_BUNDLE_PATH
# However the recommended approach is to let Calabash find the app itself
# or set the environment variable APP_BUNDLE_PATH


Before do |scenario|
  @calabash_launcher = Calabash::Cucumber::Launcher.new
  unless @calabash_launcher.calabash_no_launch?
    @calabash_launcher.relaunch
    @calabash_launcher.calabash_notify(self)
  end
end

After do |scenario|
  unless @calabash_launcher.calabash_no_stop?
    calabash_exit
    if @calabash_launcher.active?
      @calabash_launcher.stop
    end
  end
end

at_exit do
  launcher = Calabash::Cucumber::Launcher.new
  if launcher.simulator_target?
    launcher.simulator_launcher.stop unless launcher.calabash_no_stop?
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
calabash-cucumber-0.18.2 scripts/launch.rb
calabash-cucumber-0.18.1 scripts/launch.rb
calabash-cucumber-0.18.0 scripts/launch.rb
calabash-cucumber-0.17.1 scripts/launch.rb
calabash-cucumber-0.17.0 scripts/launch.rb
calabash-cucumber-0.16.4 scripts/launch.rb
calabash-cucumber-0.16.3 scripts/launch.rb
calabash-cucumber-0.16.2 scripts/launch.rb
calabash-cucumber-0.16.1 scripts/launch.rb
calabash-cucumber-0.15.0 scripts/launch.rb
calabash-cucumber-0.14.3 scripts/launch.rb
calabash-cucumber-0.14.2 scripts/launch.rb
calabash-cucumber-0.14.2.pre1 scripts/launch.rb
calabash-cucumber-0.14.1 scripts/launch.rb
calabash-cucumber-0.14.0 scripts/launch.rb