Sha256: 745cb23eb765c63bc39f5c76baa4aeea76d6c32d30a8a1c2bc5955bad82c85f7

Contents?: true

Size: 1.39 KB

Versions: 30

Compression:

Stored size: 1.39 KB

Contents

########################################
#                                      #
#       Important Note                 #
#                                      #
#   When running calabash-ios tests at #
#   www.xamarin.com/test-cloud         #
#   the  methods invoked by            #
#   CalabashLauncher are overriden.    #
#   It will automatically ensure       #
#   running on device, installing apps #
#   etc.                               #
#                                      #
########################################

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?
    launcher.simulator_launcher.stop unless launcher.calabash_no_stop?
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
calabash-cucumber-0.13.0 features-skeleton/support/01_launch.rb
calabash-cucumber-0.12.3 features-skeleton/support/01_launch.rb
calabash-cucumber-0.12.2 features-skeleton/support/01_launch.rb
calabash-cucumber-0.12.1 features-skeleton/support/01_launch.rb
calabash-cucumber-0.12.0 features-skeleton/support/01_launch.rb
calabash-cucumber-0.12.0.pre9 features-skeleton/support/01_launch.rb
calabash-cucumber-0.12.0.pre5 features-skeleton/support/01_launch.rb
calabash-cucumber-0.12.0.pre4 features-skeleton/support/01_launch.rb
calabash-cucumber-0.12.0.pre2 features-skeleton/support/01_launch.rb
calabash-cucumber-0.12.0.pre1 features-skeleton/support/01_launch.rb
calabash-cucumber-0.11.5.pre5 features-skeleton/support/01_launch.rb
calabash-cucumber-0.11.5.pre3 features-skeleton/support/01_launch.rb
calabash-cucumber-0.11.5.pre2 features-skeleton/support/01_launch.rb
calabash-cucumber-0.11.4 features-skeleton/support/01_launch.rb
calabash-cucumber-0.11.4.pre2 features-skeleton/support/01_launch.rb
calabash-cucumber-0.11.4.pre1 features-skeleton/support/01_launch.rb
calabash-cucumber-0.11.3 features-skeleton/support/01_launch.rb
calabash-cucumber-0.11.2 features-skeleton/support/01_launch.rb
calabash-cucumber-0.11.1 features-skeleton/support/01_launch.rb
calabash-cucumber-0.11.0 features-skeleton/support/01_launch.rb