Sha256: 49b186d1b3542b381b6d826440486783fc9ecdbbe17d4f8215a183f4788c547e
Contents?: true
Size: 683 Bytes
Versions: 18
Compression:
Stored size: 683 Bytes
Contents
require 'calabash-android/management/adb' Before do |scenario| return if scenario.failed? #No need to start the server is anything before this has failed. cmd = "#{adb_command} shell am instrument -w -e class sh.calaba.instrumentationbackend.InstrumentationBackend #{ENV['TEST_PACKAGE_NAME']}/android.test.InstrumentationTestRunner" log "Starting test server using:" log cmd if is_windows? system(%Q(start /MIN cmd /C #{cmd})) else `#{cmd} 1>&2 &` end sleep 2 begin connect_to_test_server log "Connection established" rescue Exception => e log "Exception:#{e.backtrace}" end end After do |scenario| disconnect_from_test_server end
Version data entries
18 entries across 18 versions & 1 rubygems