Detox: Test is not starting on release mode
Describe the bug
When i try to run test on Android release the tests just get stuck. App is just idle and the test times out. For this to work i need manually start metro, but in release its should be unnecessary, on IOS everything work fine locally and in bitrise, but android is not working on release mode. Maybe I am mistaken and i should start metro before test, but in IOS its working without it (it does it automatically). Thanks in advance
Steps To Reproduce
I have tested this issue on the latest Detox release and it still reproduces
- build android in release mode
- try to test it without metro
Expected behavior
Emulator should open app and start tests
Detox Trace-Logs
detox_pid_46890.json.log detox_pid_46890.log
Device logs (adb logcat)
emulator-12692 2021-04-08 14-08-48Z.startup.log
Screenshots

Environment (please complete the following information):
- Detox:18.7.1
- React Native:0.63.3
- Node:15.11.0
- Device:Android emulator (Pixel_4_API_29)
- OS: macOS
- Test-runner (select one):
jest-circus
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20
My suggestions: try to swizzle
setTimer()
andsetInterval()
globally, making the original call alongside a preliminary call toconsole.trace('setTimer or setInterval')
. The resulted stacktrace may convey the source.Thank you I will send new logs in 30 minutes
@noomorph Thank you, i will try to connect to http, and let you know if this works (on desktop and in emulator).