Sha256: 296fc7f5bd36639f0aae9ef1e7a92ccc3e1e665292390f8d42ae0f06168ac982

Contents?: true

Size: 586 Bytes

Versions: 7

Compression:

Stored size: 586 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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
calabash-android-0.4.0.pre16 bin/calabash-android-console.rb
calabash-android-0.4.0.pre15 bin/calabash-android-console.rb
calabash-android-0.4.0.pre11 bin/calabash-android-console.rb
calabash-android-0.4.0.pre10 bin/calabash-android-console.rb
calabash-android-0.4.0.pre9 bin/calabash-android-console.rb
calabash-android-0.4.0.pre8 bin/calabash-android-console.rb
calabash-android-0.4.0.pre7 bin/calabash-android-console.rb