Sha256: c838204a238a0b21859d6585f26cd67de1145f7ab439fb12a52e40a279d92e89
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 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']}/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner" 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
gametel-0.1 | features/support/app_life_cycle_hooks.rb |
calabash-android-0.1.0 | features-skeleton/support/app_life_cycle_hooks.rb |