Sha256: 86926a06fed91fbcaf6b097d712e457523c7da1d67b14793da545a17a080a5a2
Contents?: true
Size: 979 Bytes
Versions: 2
Compression:
Stored size: 979 Bytes
Contents
def calabash_run(app_path) old_runner = "android.test.InstrumentationTestRunner" new_rummer = "sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner" f = "features/support/app_life_cycle_hooks.rb" if File.exist?(f) and IO.read(f).include? old_runner puts "Calabash has been updated" puts "Please do the following to update your project:" puts "1) Open #{f} in a text editor" puts "2) Replace #{old_runner} with #{new_rummer}" exit end if app_path test_server_path = "features/support/#{checksum(app_path)}.apk" env = "PACKAGE_NAME=#{package_name(app_path)} "\ "TEST_PACKAGE_NAME=#{package_name(test_server_path)} "\ "APP_PATH=#{app_path} "\ "TEST_APP_PATH=#{test_server_path} "\ "TEST_SERVER_PORT=34777" else env = "" end STDOUT.sync = true cmd = "cucumber -c #{ARGV.join(" ")} #{env}" puts cmd IO.popen(cmd) do |io| io.each { |s| print s } end sleep(1) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
calabash-android-0.2.0.pre3 | bin/calabash-android-run.rb |
calabash-android-0.2.0.pre2 | bin/calabash-android-run.rb |