We need to configure Detox on windows platform to run the test for react native apps on android device.
Is there any support for this?
We tried to make the project as cross platform as we can, and it should support window, though we haven't tested it on Windows yet.
You are welcome to try and give us your feedback, In fact, I encourage you to be the first who tries. Your feedback will be very useful.
How will all the bash scripts work on Windows? @rotemmiz
Does it run in a cygwin/msys environment?
If not, we could look into using msys to run the non-JS portions of Detox. Another option is to use the Linux Subsystem for Windows, but that鈥檚 only for Windows 10.
IIRC there is no sh/bash related code on Android, we even got rid of the postinstall.sh script we had recently.
Hi. I folowed the getting started tutorial, intalled everything but when I try to do anything I get the message 'bash' not reconized
what is the command you used ?
Please provide the error log.
First I tried to run detox -h after I installed detox-cli. Everything was intalled.
There was no log. Just the message.
I am sorry, this is not enough for us to understand your issue.
what was the command you ran, and what was its output ?
I think I got it. detox-cli is not windows compatible.
https://github.com/wix/detox/blob/master/detox-cli/cli.sh
We'll need to work on that. In the meantime, to overcome this issue, you can use your test runner directly.
If you're using mocha, read its docs on how to use on Windows, but it should be something like mocha e2e --opts e2e\mocha.opts --configuration yourConfiguration
Or you can install bash shell on Windows 10
https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
Any way, I'll use Linux. Was just trying on windows to see what would happen. Thanks for your answer!
After installing Windows 10 Bash (+ node), now I am getting unable to boot emulator error.
$ detox test -c android.emu.debug
node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration android.emu.debug
detox info 11:45:52: server listening on localhost:50412...
1) "before all" hook
0 passing (3s)
1 failing
1) "before all" hook:
Error: Can not boot Android Emulator with the name: 'Nexus_5X_API_25',
make sure you choose one of the available emulators:
at EmulatorDriver._callee3$ (node_modules/detox/lib/devices/EmulatorDriver.js:35:19)
at tryCatch (node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:303:22)
at Generator.prototype.(anonymous function) [as next] (node_modules/regenerator-runtime/runtime.js:117:21)
at step (node_modules/detox/lib/devices/EmulatorDriver.js:1:809)
at node_modules/detox/lib/devices/EmulatorDriver.js:1:969
I have made one change to the detox/lib/devices/android/emulator.js build emulator path script, I changed "emulator" to "emulator.exe" in order to recognize the emulator path in the window bash terminal.
this.emulatorBin = path.join(Environment.getAndroidSDKPath(), 'tools', 'emulator');
to
this.emulatorBin = path.join(Environment.getAndroidSDKPath(), 'tools', 'emulator.exe');
The emulator name is correct.
Any Idea what needs to be changed in order to move forward from here..
run the same command with --loglevel verbose, paste the log here
running detox test -c android.emu.debug --loglevel verbose
detox test -c android.emu.debug --loglevel verbose
node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration android.emu.debug --loglevel verbose
detox info 12:53:45: server listening on localhost:53063...
detox verb ws onOpen [object Object]
detox verb ws send: {"type":"login","params":{"sessionId":"3da23a9b-2a94-389f-2e85-98109b1b5767","role":"tester"},"messageId":0}
detox verb ws onMessage: {"type":"loginSuccess","params":{"sessionId":"3da23a9b-2a94-389f-2e85-98109b1b5767","role":"tester"},"messageId":0}
detox verb ws
detox verb 1: /mnt/c/Users/ram/AppData/Local/Android/sdk/tools/emulator.exe -list-avds --verbose
1) "before all" hook
0 passing (370ms)
1 failing
1) "before all" hook:
Error: Can not boot Android Emulator with the name: 'Nexus_5X_API_25',
make sure you choose one of the available emulators:
at EmulatorDriver._callee3$ (node_modules/detox/lib/devices/EmulatorDriver.js:35:19)
at tryCatch (node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:303:22)
at Generator.prototype.(anonymous function) [as next] (node_modules/regenerator-runtime/runtime.js:117:21)
at step (node_modules/detox/lib/devices/EmulatorDriver.js:1:809)
at node_modules/detox/lib/devices/EmulatorDriver.js:1:969
detox verb ws send: {"type":"cleanup","params":{"stopRunner":true},"messageId":1}
node node_modules/mocha/bin/mocha e2e --opts e2e/mocha.opts --configuration android.emu.debug
In Windows Terminal _Not Bash_ the above command open the emulator. But I am not able to get the tests run.
verbose, indicates that the package is wrong,
com.awesomeproject.test,
I have the Test.java @
awesomeproject/android/app/src/androidTest/java/com/awesomeproject/Test.java
intially I had DetoxTest.java I changed it to Test.java after seeing the unknown package error. still I am getting the same unknown package error/exception.
node node_modules/mocha/bin/mocha e2e --opts e2e/mocha.opts --configuration android.emu.debug --loglevel verbose
detox info 13:10:55: server listening on localhost:53997...
detox verb ws onOpen [object Object]
detox verb ws send: {"type":"login","params":{"sessionId":"67eda7ec-4fb5-8c56-4aed-33456e047e22","role":"tester"},"messageId":0}
detox verb ws onMessage: {"type":"loginSuccess","params":{"sessionId":"67eda7ec-4fb5-8c56-4aed-33456e047e22","role":"tester"},"messageId":0}
detox verb ws
detox verb 1: C:\Users\ram\AppData\Local\Android\Sdk\tools\emulator.exe -list-avds --verbose
detox verb 1: stdout: Nexus_5X_API_25
detox verb 1: stdout:
detox verb Emulator stdout: emulator: Android virtual device file at: C:\Users\ram\.android\avd\Nexus_5X_API_25.ini
detox verb Emulator stdout: emulator: virtual device content at C:\Users\ram\.android\avd\Nexus_5X_API_25.avd
detox verb Emulator stdout: emulator: virtual device config file: C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/config.ini
detox verb Emulator stdout: emulator: using core hw config path: C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/hardware-qemu.ini
detox verb Emulator stdout: emulator: Found AVD target API level: 25
detox verb Emulator stdout: emulator: Read property file at C:\Users\ram\AppData\Local\Android\Sdk/system-images\android-25\google_apis_playstore\x86\/build.prop
detox verb Emulator stdout: emulator: No boot.prop property file found.
detox verb Emulator stdout: emulator: found skin 'nexus_5x' in directory: C:\Users\ram\AppData\Local\Android\Sdk\skins\
detox verb Emulator stdout: emulator: autoconfig: -skin nexus_5x
detox verb Emulator stdout: emulator: autoconfig: -skindir C:\Users\ram\AppData\Local\Android\Sdk\skins\
detox verb Emulator stdout: emulator: autoconfig: -kernel C:\Users\ram\AppData\Local\Android\Sdk/system-images\android-25\google_apis_playstore\x86\/kernel-ranchu
detox verb Emulator stdout: emulator: Target arch = 'x86'
detox verb Emulator stdout: emulator: Auto-config: -qemu -cpu qemu32
detox verb Emulator stdout: emulator: Auto-detect: Kernel image requires new device naming scheme.
detox verb Emulator stdout: emulator: Auto-detect: Kernel does not support YAFFS2 partitions.
detox verb Emulator stdout: emulator: autoconfig: -ramdisk C:\Users\ram\AppData\Local\Android\Sdk/system-images\android-25\google_apis_playstore\x86\/ramdisk.img
detox verb Emulator stdout: emulator: Using initial system image: C:\Users\ram\AppData\Local\Android\Sdk/system-images\android-25\google_apis_playstore\x86\/system.img
detox verb Emulator stdout: emulator: autoconfig: -data C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/userdata-qemu.img
detox verb Emulator stdout: emulator: autoconfig: -initdata C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/userdata.img
detox verb Emulator stdout: emulator: autoconfig: -cache C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/cache.img
detox verb Emulator stdout: emulator: autoconfig: -sdcard C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/sdcard.img
detox verb Emulator stdout: emulator: Physical RAM size: 1536MB
detox verb Emulator stdout:
detox verb Emulator stdout: emulator: VM heap size 256MB is below hardware specified minimum of 384MB,setting it to that value
detox verb Emulator stdout: emulator: System image is read only
detox verb Emulator stdout: emulator: Found 1 DNS servers: 192.168.43.1
detox verb Emulator stdout: emulator: trying to load skin file 'C:\Users\ram\AppData\Local\Android\Sdk\skins\/nexus_5x/layout'
detox verb Emulator stdout: emulator: CPU Acceleration: working
detox verb Emulator stdout: emulator: CPU Acceleration status: HAXM version 6.2.1 (4) is installed and usable.
detox verb Emulator stdout: emulator: GPU emulation enabled using 'host' mode
detox verb Emulator stdout: emulator: Using default value for kernel Contiguous Memory Allocation.
detox verb Emulator stdout: emulator: Found 1 DNS servers: 192.168.43.1
detox verb Emulator stdout: Content of hardware configuration file:
detox verb Emulator stdout: hw.cpu.arch = x86
detox verb Emulator stdout: hw.cpu.model = qemu32
detox verb Emulator stdout: hw.cpu.ncore = 2
detox verb Emulator stdout: hw.ramSize = 1536
detox verb Emulator stdout: hw.screen = multi-touch
detox verb Emulator stdout: hw.mainKeys = false
detox verb Emulator stdout: hw.trackBall = false
detox verb Emulator stdout: hw.keyboard = true
detox verb Emulator stdout: hw.keyboard.lid = false
detox verb Emulator stdout: hw.keyboard.charmap = qwerty2
detox verb Emulator stdout: hw.dPad = false
detox verb Emulator stdout: hw.rotaryInput = false
detox verb Emulator stdout: hw.gsmModem = true
detox verb Emulator stdout: hw.gps = true
detox verb Emulator stdout: hw.battery = true
detox verb Emulator stdout: hw.accelerometer = true
detox verb Emulator stdout: hw.audioInput = true
detox verb Emulator stdout: hw.audioOutput = true
detox verb Emulator stdout: hw.sdCard = true
detox verb Emulator stdout: hw.sdCard.path = C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/sdcard.img
detox verb Emulator stdout: disk.cachePartition = true
detox verb Emulator stdout: disk.cachePartition.path = C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/cache.img
detox verb Emulator stdout: disk.cachePartition.size = 66m
detox verb Emulator stdout: hw.lcd.width = 1080
detox verb Emulator stdout: hw.lcd.height = 1920
detox verb Emulator stdout: hw.lcd.depth = 16
detox verb Emulator stdout: hw.lcd.density = 420
detox verb Emulator stdout: hw.lcd.backlight = true
detox verb Emulator stdout: hw.gpu.enabled = true
detox verb Emulator stdout: hw.gpu.mode = host
detox verb Emulator stdout: hw.gpu.blacklisted = no
detox verb Emulator stdout: hw.initialOrientation = Portrait
detox verb Emulator stdout: hw.camera.back = emulated
detox verb Emulator stdout: hw.camera.front = emulated
detox verb Emulator stdout: vm.heapSize = 384
detox verb Emulator stdout: hw.sensors.light = true
detox verb Emulator stdout: hw.sensors.pressure = true
detox verb Emulator stdout: hw.sensors.humidity = true
detox verb Emulator stdout: hw.sensors.proximity = true
detox verb Emulator stdout: hw.sensors.magnetic_field = true
detox verb Emulator stdout: hw.sensors.orientation = true
detox verb Emulator stdout: hw.sensors.temperature = true
detox verb Emulator stdout: hw.useext4 = true
detox verb Emulator stdout: kernel.path = C:\Users\ram\AppData\Local\Android\Sdk/system-images\android-25\google_apis_playstore\x86\/kernel-ranchu
detox verb Emulator stdout: kernel.newDeviceNaming = yes
detox verb Emulator stdout: kernel.supportsYaffs2 = no
detox verb Emulator stdout: disk.ramdisk.path = C:\Users\ram\AppData\Local\Android\Sdk/system-images\android-25\google_apis_playstore\x86\/ramdisk.img
detox verb Emulator stdout: disk.systemPartition.initPath = C:\Users\ram\AppData\Local\Android\Sdk/system-images\android-25\google_apis_
detox verb Emulator stdout: playstore\x86\/system.img
detox verb Emulator stdout: disk.systemPartition.size = 2g
detox verb Emulator stdout: disk.dataPartition.path = C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/userdata-qemu.img
detox verb Emulator stdout: disk.dataPartition.size = 800m
detox verb Emulator stdout: disk.encryptionKeyPartition.path = C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/encryptionkey.img
detox verb Emulator stdout: PlayStore.enabled = true
detox verb Emulator stdout: avd.name = Nexus_5X_API_25
detox verb Emulator stdout: .
detox verb Emulator stdout: QEMU options list:
detox verb Emulator stdout: emulator: argv[00] = "C:\Users\ram\AppData\Local\Android\Sdk\emulator/qemu/windows-x86_64/qemu-system-i386.exe"
detox verb Emulator stdout: emulator: argv[01] = "-no-audio"
detox verb Emulator stdout: emulator: argv[02] = "-dns-server"
detox verb Emulator stdout: emulator: argv[03] = "192.168.43.1"
detox verb Emulator stdout: emulator: argv[04] = "-serial"
detox verb Emulator stdout: emulator: argv[05] = "null"
detox verb Emulator stdout: emulator: argv[06] = "-cpu"
detox verb Emulator stdout: emulator: argv[07] = "android32"
detox verb Emulator stdout: emulator: argv[08] = "-enable-hax"
detox verb Emulator stdout: emulator: argv[09] = "-smp"
detox verb Emulator stdout: emulator: argv[10] = "cores=2"
detox verb Emulator stdout: emulator: argv[11] = "-m"
detox verb Emulator stdout: emulator: argv[12] = "1536"
detox verb Emulator stdout: emulator: argv[13] = "-lcd-density"
detox verb Emulator stdout: emulator: argv[14] = "420"
detox verb Emulator stdout: emulator: argv[15] = "-kernel"
detox verb Emulator stdout: emulator: argv[16] = "C:\Users\ram\AppData\Local\Android\Sdk/system-images\android-25\google_apis_playstore\x86\/kernel-ranchu"
detox verb Emulator stdout: emulator: argv[17] = "-initrd"
detox verb Emulator stdout: emulator: argv[18] = "C:\Users\ram\AppData\Local\Android\Sdk/system-images\android-25\google_apis_playstore\x86\/ramdisk.img"
detox verb Emulator stdout: emulator: argv[19] = "-object"
detox verb Emulator stdout: emulator: argv[20] = "iothread,id=disk-iothread"
detox verb Emulator stdout: emulator: argv[21] = "-drive"
detox verb Emulator stdout: emulator: argv[22] = "if=none,overlap-check=none,cache=unsafe,index=0,id=system,file=C:\Users\ram\.android\avd\Nexus_5X_API_25.avd\system.img.qcow2,read-only"
detox verb Emulator stdout: emulator: argv[23] = "-device"
detox verb Emulator stdout: emulator: argv[24] = "virtio-blk-pci,drive=system,iothread=disk-iothread,modern-pio-notify"
detox verb Emulator stdout: emulator: argv[25] = "-drive"
detox verb Emulator stdout: emulator: argv[26] = "if=none,overlap-check=none,cache=unsafe,index=1,id=cache,file=C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/cache.img.qcow2,l2-cache-size=1048576"
detox verb Emulator stdout: emulator: argv[27] = "-device"
detox verb Emulator stdout: emulator: argv[28] = "virtio-blk-pci,drive=cache,iothread=disk-iothread,modern-pio-notify"
detox verb Emulator stdout: emulator: argv[29] = "-drive"
detox verb Emulator stdout: emulator: argv[30] = "if=none,overlap-check=none,cache=unsafe,index=2,id=userdata,file=C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/userdata-qemu.img.qcow2,l2-cache-size=1048576"
detox verb Emulator stdout: emulator: argv[31] = "-device"
detox verb Emulator stdout: emulator: argv[32] = "virtio-blk-pci,drive=userdata,iothread=disk-iothread,modern-pio-notify"
detox verb Emulator stdout: emulator: argv[33] = "-drive"
detox verb Emulator stdout: emulator: argv[34] = "if=none,overlap-check=none,cache=unsafe,index=3,id=encrypt,file=C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/encryptionkey.img.qcow2,l2-cache-size=1048576"
detox verb Emulator stdout: emulator: argv[35] = "-device"
detox verb Emulator stdout: emulator: argv[36] = "virtio-blk-pci,drive=encrypt,iothread=disk-iothread,modern-pio-notify"
detox verb Emulator stdout: emulator: argv[37] = "-drive"
detox verb Emulator stdout: emulator: argv[38] = "if=none,overlap-check=none,cache=unsafe,index=4,id=sdcard,file=C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/sdcard.img.qcow2,l2-cache-size=1048576"
detox verb Emulator stdout: emulator: argv[39] = "-device"
detox verb Emulator stdout: emulator: argv[40] = "virtio-blk-pci,drive=sdcard,iothread=disk-iothread,modern-pio-notify"
detox verb Emulator stdout: emulator: argv[41] = "-netdev"
detox verb Emulator stdout: emulator: argv[42] = "user,id=mynet"
detox verb Emulator stdout: emulator: argv[43] = "-device"
detox verb Emulator stdout: emulator: argv[44] = "virtio-net-pci,netdev=mynet"
detox verb Emulator stdout: emulator: argv[45] = "-netdev"
detox verb Emulator stdout: emulator: argv[46] = "user,id=mynet2,net=10.0.3.0/24"
detox verb Emulator stdout: emulator: argv[47] = "-device"
detox verb Emulator stdout: emulator: argv[48] = "virtio-net-pci,netdev=mynet2"
detox verb Emulator stdout: emulator: argv[49] = "-show-cursor"
detox verb Emulator stdout: emulator: argv[50] = "-L"
detox verb Emulator stdout: emulator: argv[51] = "C:\Users\ram\AppData\Local\Android\Sdk\emulator/lib/pc-bios"
detox verb Emulator stdout: emulator: argv[52] = "-soundhw"
detox verb Emulator stdout: emulator: argv[53] = "hda"
detox verb Emulator stdout: emulator: argv[54] = "-vga"
detox verb Emulator stdout: emulator: argv[55] = "none"
detox verb Emulator stdout: emulator: argv[56] = "-append"
detox verb Emulator stdout: emulator: argv[57] = "qemu=1 androidboot.hardware=ranchu clocksource=pit android.qemud=1 console=0 console=0 android.checkjni=1 qemu.gles=1 qemu.encrypt=1 cma=256M"
detox verb Emulator stdout: emulator: argv[58] = "-android-hw"
detox verb Emulator stdout: emulator: argv[59] = "C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/hardware-qemu.ini"
detox verb Emulator stdout: Concatenated QEMU options:
detox verb Emulator stdout: C:\Users\ram\AppData\Local\Android\Sdk\emulator/qemu/windows-x86_64/qemu-system-i386.exe -no-audio -dns-server 192.168.43.1 -serial null -cpu android32 -enable-hax -smp cores=2
detox verb Emulator stdout: -m 1536 -lcd-density 420 -kernel C:\Users\ram\AppData\Local\Android\Sdk/system-images\android-25\google_apis_playstore\x86\/kernel-ranchu -initrd C:\Users\ram\AppData\Local\Android\Sdk/system-images\android-25\google_apis_playstore\x86\/ramdisk.img -object iothread,id=disk-iothread -drive if=none,overlap-check=none,cache=unsafe,index=0,id=system,file=C:\Users\ram\.android\avd\Nexus_5X_API_25.avd\system.img.qcow2,read-only -device virtio-blk-pci,drive=system,iothread=disk-iothread,modern-pio-notify -drive if=none,overlap-check=none,cache=unsafe,index=1,id=cache,file=C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/cache.img.qcow2,l2-cache-size=1048576 -device virtio-blk-pci,drive=cache,iothread=disk-iothread,modern-pio-notify -drive if=none,overlap-check=none,cache=unsafe,index=2,id=userdata,file=C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/userdata-qemu.img.qcow2,l2-cache-size=1048576 -device virtio-blk-pci,drive=userdata,iothread=disk-iothread,modern-pio-notify -drive if=none,overlap-check=none,cache=unsafe,index=3,id=encrypt,file=C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/encryptionkey.img.qcow2,l2-cache-size=1048576 -device virtio-blk-pci,drive=encrypt,iothread=disk-iothread,modern-pio-notify -drive if=none,overlap-check=none,cache=unsafe,index=4,id=sdcard,file=C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/sdcard.img.qcow2,l2-cache-size=1048576 -device virtio-blk-pci,drive=sdcard,iothread=disk-iothread,modern-pio-notify -netdev user,id=mynet -device virtio-net-pci,netdev=mynet -netdev user,id=mynet2,net=10.0.3.0/24 -device virtio-net-pci,netdev=mynet2 -show-cursor -L C:\Users\ram\AppData\Local\Android\Sdk\emulator/lib/pc-bios -soundhw hda -vga none -append 'qemu=1 androidboot.hardware=ranchu clocksource=pit android.qemud=1 console=0 console=0 android.checkjni=1 qemu.gles=1 qemu.encrypt=1 cma=256M' -android-hw C:\Users\ram\.android\avd\Nexus_5X_API_25.avd/hardware-qemu.ini
detox verb Emulator stdout: emulator: Starting QEMU main loop
detox verb Emulator stdout: Hax is enabled
detox verb Emulator stdout: Hax ram_size 0x60000000
detox verb Emulator stdout: emulator: registered 'boot-properties' qemud service
detox verb Emulator stdout: emulator: Adding boot property: 'qemu.sf.fake_camera' = 'both'
detox verb Emulator stdout: emulator: Adding boot property: 'qemu.adb.secure' = '1'
detox verb Emulator stdout: emulator: Initializing hardware OpenGLES emulation support
detox verb Emulator stdout: emulator: Adding boot property: 'ro.opengles.version' = '131072'
detox verb Emulator stdout: emulator: Adding boot property: 'dalvik.vm.heapsize' = '384m'
detox verb Emulator stdout: emulator: Adding boot property: 'qemu.hw.mainkeys' = '0'
detox verb Emulator stdout: emulator: Adding boot property: 'qemu.sf.lcd_density' = '420'
detox verb Emulator stdout: HAX is working and emulator runs in fast virt mode.
detox verb Emulator stdout:
detox verb Emulator stdout: emulator
detox verb Emulator stdout: : goldfish_events.have-dpad: false
detox verb Emulator stdout: emulator: goldfish_events.have-trackball: false
detox verb Emulator stdout: emulator: goldfish_events.have-camera: true
detox verb Emulator stdout: emulator: goldfish_events.have-keyboard: true
detox verb Emulator stdout: emulator: goldfish_events.have-lidswitch: false
detox verb Emulator stdout: emulator: goldfish_events.have-touch: false
detox verb Emulator stdout: emulator: goldfish_events.have-multitouch: true
detox verb Emulator stdout:
detox verb Emulator stdout: emulator
detox verb Emulator stdout: : control console listening on port 5554, ADB on port 5555
detox verb Emulator stdout:
detox verb Emulator stdout: Not u
detox verb Emulator stdout: sing any http proxy
detox verb Emulator stdout: emulator: android_hw_fingerprint_init: fingerprint qemud listen service initialized
detox verb Emulator stdout:
detox verb Emulator stdout:
detox verb Emulator stdout: emulator: _h
detox verb Emulator stdout: wFingerprint_connect: connect finger print listen is called
detox verb Emulator stdout:
detox verb Emulator stdout: emulator: got message from guest system fingerprint HAL
detox verb Emulator stdout:
detox verb Emulator stdout:
detox verb Emulator stdout: emulator:
detox verb Emulator stdout: onGuestSendCommand: [00000000214f8140] Adb connected, start proxing data
detox verb Emulator stdout:
detox verb 2: C:\Users\ram\AppData\Local\Android\Sdk\platform-tools\adb devices
detox verb 2: stdout: List of devices attached
detox verb 2: stdout: emulator-5554 device
detox verb 2: stdout:
detox verb 2: stdout:
detox verb 3: C:\Users\ram\AppData\Local\Android\Sdk\platform-tools\adb -s emulator-5554 shell input keyevent 82
detox verb 4: C:\Users\ram\AppData\Local\Android\Sdk\platform-tools\adb -s emulator-5554 uninstall com.awesomeproject
detox verb 4: stdout: Success
detox verb 4: stdout:
detox verb 5: C:\Users\ram\AppData\Local\Android\Sdk\platform-tools\adb -s emulator-5554 uninstall com.awesomeproject.test
detox verb 5: stderr:
detox verb 5: stderr: Exception occurred while dumping:
detox verb 5: stderr: java.lang.IllegalArgumentException: Unknown package: com.awesomeproject.test
detox verb 5: stderr: at com.android.server.pm.Settings.isOrphaned(Settings.java:4134)
detox verb 5: stderr: at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:18105)
detox verb 5: stderr: at com.android.server.pm.PackageManagerService.deletePackage(PackageManagerService.java:15522)
detox verb 5: stderr: at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:888)
detox verb 5: stderr: at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:792)
detox verb 5: stderr: at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:118)
detox verb 5: stderr: at android.os.ShellCommand.exec(ShellCommand.java:94)
detox verb 5: stderr: at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:18363)
detox verb 5: stderr: at android.os.Binder.shellCommand(Binder.java:468)
detox verb 5: stderr: at android.os.Binder.onTransact(Binder.java:367)
detox verb 5: stderr: at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2387)
detox verb 5: stderr: at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3031)
detox verb 5: stderr: at android.os.Binder.execTransact(Binder.java:565)
detox verb 5: stderr:
detox verb 6: C:\Users\ram\AppData\Local\Android\Sdk\platform-tools\adb -s emulator-5554 install -r -g C:\Users\ram\Projects\AwesomeProject\android\app\build\outputs\apk\app-debug.apk
detox verb 6: stderr: Success
detox verb 6: stderr:
detox verb 7: C:\Users\ram\AppData\Local\Android\Sdk\platform-tools\adb -s emulator-5554 install -r -g C:\Users\ram\Projects\AwesomeProject\android\app\build\outputs\apk\app-debug.apk
detox verb 7: stderr: Success
detox verb 7: stderr:
detox verb 8: C:\Users\ram\AppData\Local\Android\Sdk\platform-tools\adb -s emulator-5554 shell am force-stop com.awesomeproject
detox verb adb -s emulator-5554 shell am instrument -w -r -e detoxServer ws://localhost:53997 -e detoxSessionId 67eda7ec-4fb5-8c56-4aed-33456e047e22 -e debug false com.awesomeproject.test/android.support.test.runner.AndroidJUnitRunner
detox verb Instrumentation spawned, childProcess.pid: 728
detox verb ws send: {"type":"isReady","params":{},"messageId":-1000}
detox verb Instrumentation stderr: android.util.AndroidException: INSTRUMENTATION_FAILED: com.awesomeproject.test/android.support.test.runner.AndroidJUnitRunner
detox verb Instrumentation stderr:
detox verb Instrumentation stderr: at com.android.commands.am.Am.runInstrument(Am.java:890)
detox verb Instrumentation stderr: at com.android.commands.am.Am.onRun(Am.java:400)
detox verb Instrumentation stderr: at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
detox verb Instrumentation stderr: at com.android.commands.am.Am.main(Am.java:121)
detox verb Instrumentation stderr: at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
detox verb Instrumentation stderr: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:262)
detox verb Instrumentation stderr:
detox verb Instrumentation stdout: INSTRUMENTATION_STATUS: id=ActivityManagerService
detox verb Instrumentation stdout:
detox verb Instrumentation stdout: INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.awesomeproject.test/android.support.test.runner.AndroidJUnitRunner}
detox verb Instrumentation stdout: INSTRUMENTATION_STATUS_CODE: -1
detox verb Instrumentation stdout:
detox verb instrumentationProcess terminated due to receipt of signal null
1) "before all" hook
0 passing (2m)
1 failing
1) "before all" hook:
Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
detox verb ws send: {"type":"cleanup","params":{"stopRunner":true},"messageId":1}
Any Help on what I am missing?
same problem
Hello,
We are moving support questions to Stack Overflow. Please ask a question there with the detox tag. This section is only meant for Detox issues and enhancement requests.
Thanks
@LeoNatan is detox support Linux?
Linux should be supported.
Any update on the windows support ?
Windows is currently not supported. We are all using Macs and don鈥檛 have the time or resources to support Windows. PRs are welcome.
@LeoNatan @rotemmiz I wonder if someone wants to add windows support.
what should he use go language or python as an alternative for the scripts used in detox?
Hard to say. I guess, what is more familiar to you.
Please note that we do not have much experience with these technologies (and the Windows platform in general), and we may not be able to accept pull requests of those technologies.
@LeoNatan what about pull requests made by a javascript shell _Portable Unix shell commands for Node.js_
It is javascript and it could be reviewed so is it could be accepted?
Please before you start actual work, create a plan so we can review and discuss. Thanks
Most helpful comment
Linux should be supported.