Sha256: 8ac0ca067874b53736ac2cfe962aadc443a2f0f0a690b0d96a1688e3a4f6b641

Contents?: true

Size: 1.48 KB

Versions: 93

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 = "~/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?
    Calabash::Cucumber::SimulatorHelper.stop unless launcher.calabash_no_stop?
  end
end

Version data entries

93 entries across 47 versions & 2 rubygems

Version Path
calabash-cucumber-0.9.163.pre11 scripts/launch.rb
calabash-cucumber-0.9.163.pre11 features-skeleton/support/01_launch.rb
calabash-cucumber-0.9.163.pre10 features-skeleton/support/01_launch.rb
calabash-cucumber-0.9.163.pre10 scripts/launch.rb
calabash-cucumber-0.9.163.pre9 scripts/launch.rb
calabash-cucumber-0.9.163.pre9 features-skeleton/support/01_launch.rb
calabash-cucumber-0.9.163.pre8 features-skeleton/support/01_launch.rb
calabash-cucumber-0.9.163.pre8 scripts/launch.rb
calabash-cucumber-0.9.163.pre7 scripts/launch.rb
calabash-cucumber-0.9.163.pre7 features-skeleton/support/01_launch.rb
calabash-cucumber-0.9.163.pre6 features-skeleton/support/01_launch.rb
calabash-cucumber-0.9.163.pre6 scripts/launch.rb
calabash-cucumber-0.9.163.pre5 scripts/launch.rb
calabash-cucumber-0.9.163.pre5 features-skeleton/support/01_launch.rb
calabash-cucumber-0.9.163.pre4 features-skeleton/support/01_launch.rb
calabash-cucumber-0.9.163.pre4 scripts/launch.rb
calabash-cucumber-0.9.163.pre3 features-skeleton/support/01_launch.rb
calabash-cucumber-0.9.163.pre3 scripts/launch.rb
calabash-cucumber-0.9.163.pre2 features-skeleton/support/01_launch.rb
calabash-cucumber-0.9.163.pre2 scripts/launch.rb