bin/calabash-android-run.rb in calabash-android-0.2.3 vs bin/calabash-android-run.rb in calabash-android-0.2.4
- old
+ new
@@ -1,6 +1,6 @@
-def calabash_run(app_path)
+def calabash_run(app_path = nil)
old_runner = "android.test.InstrumentationTestRunner"
new_rummer = "sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner"
f = "features/support/app_life_cycle_hooks.rb"
@@ -10,17 +10,15 @@
puts "1) Open #{f} in a text editor"
puts "2) Replace #{old_runner} with #{new_rummer}"
exit
end
-
- unless File.exist?(test_server_path(app_path))
- puts "No test server found for this combination of app and calabash version. Rebuilding test server."
- calabash_build(app_path)
- end
-
-
if app_path
+ unless File.exist?(test_server_path(app_path))
+ puts "No test server found for this combination of app and calabash version. Rebuilding test server."
+ calabash_build(app_path)
+ end
+
test_server_path = test_server_path(app_path)
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}' "\
\ No newline at end of file