You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
09:16:59.025 detox[121254] i Detox can't seem to connect to the test app(s)!
HINT:
The test app might have crashed prematurely, or has had trouble setting up the connection.
Refer to our troubleshooting guide, for full details: https://wix.github.io/Detox/docs/troubleshooting/running-tests#tests-execution-hangs
09:16:59.034 detox[121254] i An error occurred while waiting for the app to become ready. Waiting for disconnection...
error: Failed to run application on the device
HINT: Most likely, your tests have timed out and called detox.cleanup() while it was waiting for "ready" message (over WebSocket) from the instrumentation process.
09:16:59.035 detox[121254] i The app disconnected.
FAIL e2e/start.test.js (130.542 s)
....
● Start app e2e testing flow › bypasses the notification screen
thrown: "Exceeded timeout of 120000 ms for a hook.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
I have tried running the test build itself with npx expo run:android
and it loads on the emulator correctly.
With this, have tried running the tests against the expo url changing the ./start.test.js to
The currently running app closes and results in the same cannot connect to app error.
Have tried invalidating the cache on Android Studio and rerunning. Does not solve.
Although detox build is successful, but there are these notes/warnings:
Task :app:lintVitalAnalyzeRelease
e: .//node_modules/expo-updates/android/build/.transforms/b01950e524e0f4b4d7cbab0253ab7589/transformed/out/jars/classes.jar!/META-INF/expo-updates_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
Task :app:compileReleaseAndroidTestJavaWithJavac
Note: .//android/app/src/androidTest/java/au/com//DetoxTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
The text was updated successfully, but these errors were encountered:
What happened?
I have followed the steps for Android Detox project setup per https://wix.github.io/Detox/docs/introduction/project-setup .
After a successful build, when I try to run detox tests, the app is not launched and tests do not run - all timeout.
iOS does not have these issues.
What was the expected behaviour?
After completing successful build running
npx detox build --configuration android.release
I expect running detox tests by
npx detox test --configuration android.release
on the Android Studio emulator to execute.
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
On react-native app
rm -rf android/
npx expo prebuild --platform android
Patch build scripts per https://wix.github.io/Detox/docs/introduction/project-setup/#41-patching-build-scripts
Add auxiliary Android test per https://wix.github.io/Detox/docs/introduction/project-setup/#42-adding-an-auxiliary-android-test
npx detox build --configuration android.release
If build successful
npx detox test --configuration android.release
In what environment did this happen?
Detox version: ^20.13.5
React Native version: 0.72.10
"expo": "^49.0.22",
Node version: 16.18.1
Device model: emulator (Pixel_3a_API_34_extension_level_7_x86_64)
Test-runner (select one): jest
Detox logs
Detox logs
Device logs
Device logs
More data, please!
.detoxrc.js
./e2e/start.test.js
./android/app/src/androidTest/java/au/com/companyname1/companyname2/prod/DetoxTest.java
Step 4.1 steps followed precisely - https://wix.github.io/Detox/docs/introduction/project-setup/#41-patching-build-scripts (v20.x)
I have tried running the test build itself with
npx expo run:android
and it loads on the emulator correctly.
With this, have tried running the tests against the expo url changing the ./start.test.js to
The currently running app closes and results in the same cannot connect to app error.
Have tried invalidating the cache on Android Studio and rerunning. Does not solve.
Although detox build is successful, but there are these notes/warnings:
e: .//node_modules/expo-updates/android/build/.transforms/b01950e524e0f4b4d7cbab0253ab7589/transformed/out/jars/classes.jar!/META-INF/expo-updates_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The text was updated successfully, but these errors were encountered: