lib/calabash-android/operations.rb in calabash-android-0.2.22 vs lib/calabash-android/operations.rb in calabash-android-0.3.0.pre1
- old
+ new
@@ -273,11 +273,10 @@
""
end
end
def start_test_server_in_background
- test_server_package = package_name(@test_server_path)
- cmd = "#{adb_command} shell am instrument -w -e class sh.calaba.instrumentationbackend.InstrumentationBackend #{test_server_package}/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner"
+ cmd = "#{adb_command} shell am instrument -w -e target_package #{ENV["PACKAGE_NAME"]} -e main_activity #{ENV["MAIN_ACTIVITY"]} -e class sh.calaba.instrumentationbackend.InstrumentationBackend sh.calaba.android.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner"
log "Starting test server using:"
log cmd
if is_windows?
system(%Q(start /MIN cmd /C #{cmd}))
else