[Android] Detox can't seem to connect to the test apps!
See original GitHub issueWhat happened?
I am having a problem running detox on android. The app builds successfully on my emulator but for some reason all the tests fail. Below is the error I receive:
HINT:
Have you forgotten to call 'device.launchApp()' in the beginning of your test?
Refer to our troubleshooting guide, for full details: https://wix.github.io/Detox/docs/troubleshooting/running-tests#tests-execution-hangs
---
The following package could not be delivered:
{
type: 'invoke',
params: [Object],
messageId: 30
}
I did some searching through your GitHub issues and noticed this person encountered the same issue as me: https://github.com/wix/Detox/issues/3233
I went ahead and updated the DetoxTest.java file and retriggered the test and I still am unable to successfully run tests on android.
What was the expected behaviour?
Detox should run successfully on Android
Was it tested on latest Detox?
- I have tested this issue on the latest Detox release and it still reproduces.
Did your test throw out a timeout?
- I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much.
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 19.6.5 React Native version: 0.66.3 Node version: 14.17.3 Device model: Android version: android 11 Test-runner (select one): jest-circus / jest+jasmine / mocha / other
Detox logs
Detox logs
paste logs here!
Device logs
Device logs
paste logs here!
More data, please!
No response
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Detox can't seem to connect to the test app on android[fixed]
The test app might have crashed prematurely, or has had trouble setting up the connection. Refer to our troubleshooting guide, for full details: ......
Read more >Detox react-native build success, "Detox can't seem to connect ...
Detox react-native build success, "Detox can't seem to connect to the test app(s)!" (iOS) - Stack Overflow. Stack Overflow for Teams – Start ......
Read more >React Native development tools - Part 3: Testing tools - Pusher
This is the third in a three part tutorial series on React Native development tools. In this part, look at testing with Jest...
Read more >React Native Android Detox Tests Not Working
The main problem I can see is that detox is having problems interacting with the bitrise emulator. First of all, the swipes do...
Read more >React Native end-to-end testing with Detox - LogRocket Blog
Demo running end-to-end tests in React Native with Detox, an end-to-end framework for mobile apps developed by Wix.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the
detox
tag.Feel free to post your Stack Overflow question here for more visibility! We’ll take a look at it.
Refer to this discussion for more information about our policy on issues.
@mkurczewski this is why -
Your app crashes immediately. You might to check the device (emulator) logs using
adb logcat
.