Sha256: 44b41c4a508f334367dafb5fe58504296d3af1bfa017d49b2e0db8337bf84c88

Contents?: true

Size: 627 Bytes

Versions: 9

Compression:

Stored size: 627 Bytes

Contents

def calabash_console(app_path = nil)
  test_server_path = test_server_path(app_path)

  unless ENV["TEST_SERVER_PORT"]
    ENV["TEST_SERVER_PORT"] = "34777"
  end

  ENV["IRBRC"] = File.join(File.dirname(__FILE__), '..', 'irbrc')

  unless ENV["PACKAGE_NAME"]
    ENV["PACKAGE_NAME"] = package_name(app_path)
  end

  unless ENV["MAIN_ACTIVITY"]
    ENV["MAIN_ACTIVITY"] = main_activity(app_path)
  end

  unless ENV["APP_PATH"]
    ENV["APP_PATH"] = app_path
  end

  unless ENV["TEST_APP_PATH"]
    ENV["TEST_APP_PATH"] = test_server_path
  end

  build_test_server_if_needed(app_path)

  system "#{RbConfig.ruby} -S irb"
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
testautoa-0.4.1 bin/calabash-android-console.rb
calabash-android-0.4.2 bin/calabash-android-console.rb
calabash-android-0.4.1 bin/calabash-android-console.rb
calabash-android-0.4.0 bin/calabash-android-console.rb
calabash-android-0.4.0.pre18 bin/calabash-android-console.rb
testautoa-0.4.0.pre19 bin/calabash-android-console.rb
testautoa-0.4.0.pre18 bin/calabash-android-console.rb
testautoa-0.4.0.pre16 bin/calabash-android-console.rb
calabash-android-0.4.0.pre17 bin/calabash-android-console.rb