-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android gets stuck in detox.init() #1383
Comments
I had this just now and it turned out to be that the Android Emulator was in Airplane Mode. You will get this "hang" if the emulator can't connect to the Detox server for some reason. Your issue could be something else, but that fixed it for me. |
I'm having the same issue as described above. Remarkably, the detox tests do run correctly when I start the Environment:
Device and Verbose Detox Logs
Detox:
Detox trace:
In
Really spent a lot of time trying to match all files against the examples in the Detox repository, but nothing seems to work, except (like I described) running the detox testing with the metro bundler server running in the background. |
I don't really know what caused this issue, but upgrading a lot of dependencies, compileSdkVersion, targetSdkVersion, etc in build gradle (especially firebase-core and firebase-messaging) solved it for me. Hope it will help you in any way to find your problem. |
@roeycollignon can you be a bit more specific in the versions you upgraded to. I seem to experience the same issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this reporsitory, read this discussion. |
The issue has been closed for inactivity. |
Describe the bug
After upgrading Detox to version 12.7.0, the App was launched but then gets stuck in detox.init()
This bug doesn't reproduce on version 10.0.7
To Reproduce
Expected behavior
The next step should be logging in to the App
Environment:
Nexus 5X API 28
Nexus 5X API 27
Nexus 5X API 25
Device and Verbose Detox Logs
`> [email protected] detox-android-sanity /Users/roey/fundbox/mobileNative
Determining test suites to run...
console.log e2e/init.js:13
detox[26753] INFO: [DetoxServer.js] server listening on localhost:52692...
FAIL e2e/tests/sanity/sanityTests.spec.js (121.823s)
sanity suite
✕ verify the user can login (379ms)
○ skipped 1 test
after login
○ skipped 4 tests
● sanity suite › verify the user can login
● sanity suite › verify the user can login
● sanity suite › verify the user can login
● sanity suite › verify the user can login
● sanity suite › verify credit increase modal
● sanity suite › after login › verify the user can logout
● sanity suite › after login › clear with 12 weeks payment plan
● sanity suite › after login › verify the user can change contact details
● sanity suite › after login › repay the advance early
Test Suites: 1 failed, 1 total
Tests: 1 failed, 5 skipped, 6 total
Snapshots: 0 total
Time: 121.872s, estimated 127s
Ran all test suites matching /e2e/tests/sanity/i.
jest-html-reporter >> Report generated (./e2e/artifacts/test-report.html)
Force exiting Jest
Have you considered using
--detectOpenHandles
to detect async operations that kept running after all tests finished?npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] detox-android-sanity:
configuration="android.emu.release" RUNTIME_ENV="staging" cleanup=true artifactsLocation="./e2e/artifacts/" recordLogs="failing" takeScreenshots="all" recordVideos="all" node_modules/.bin/jest e2e/tests/sanity --config=e2e/config.json --maxWorkers=1 --verbose
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] detox-android-sanity script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/roey/.npm/_logs/2019-05-14T11_10_32_294Z-debug.log
The text was updated successfully, but these errors were encountered: