Sha256: 8e3533960170c70b0fb7c5c52dfe07f0a2ba3fa7a36e49a6ae06dae7cec1dfda

Contents?: true

Size: 733 Bytes

Versions: 11

Compression:

Stored size: 733 Bytes

Contents

require 'calabash-android/management/adb'

Before do |scenario|
  # John Gallagher provided the "scenario_is_outline" fix: https://groups.google.com/forum/?fromgroups#!topic/calabash-ios/ICA4f24eSsY
  # ...there may be a better way of doing this...
  @scenario_is_outline = (scenario.class == Cucumber::Ast::OutlineTable::ExampleRow) 
  if @scenario_is_outline 
    scenario = scenario.scenario_outline
    # Still need to call connect_to_test_server...
  elsif scenario.failed?
    return #No need to start the server is anything before this has failed.
  end

  return if scenario.failed? #No need to start the server is anything before this has failed.
  start_test_server_in_background
end

After do
    shutdown_test_server
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
calabash-android-0.2.22 features-skeleton/support/app_life_cycle_hooks.rb
calabash-android-0.2.21 features-skeleton/support/app_life_cycle_hooks.rb
calabash-android-0.2.20 features-skeleton/support/app_life_cycle_hooks.rb
calabash-android-0.2.19 features-skeleton/support/app_life_cycle_hooks.rb
calabash-android-0.2.18 features-skeleton/support/app_life_cycle_hooks.rb
calabash-android-0.2.17 features-skeleton/support/app_life_cycle_hooks.rb
calabash-android-0.2.16 features-skeleton/support/app_life_cycle_hooks.rb
calabash-android-0.2.15 features-skeleton/support/app_life_cycle_hooks.rb
calabash-android-0.2.14 features-skeleton/support/app_life_cycle_hooks.rb
calabash-android-0.2.13 features-skeleton/support/app_life_cycle_hooks.rb
calabash-android-0.2.12 features-skeleton/support/app_life_cycle_hooks.rb