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
I am able to build the project and generate the required APKs (including the test apk). However, detox fails to connect to the test app(s). adblogs.txt
The execution command that I use: detox test --configuration android.att.debug
Logs:
11:38:22.611 detox[12700] B jest --config e2e/jest.config.js
11:38:48.206 detox[11292] i starter.test.js is assigned to AttachedDevice:19287B2023
11:40:48.241 detox[11292] i Example: should have welcome screen
11:40:48.245 detox[11292] i Example: should have welcome screen [FAIL]
11:40:48.278 detox[11292] 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
11:40:48.288 detox[11292] 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.
11:40:48.289 detox[11292] i The app disconnected.
FAIL e2e/starter.test.js (144.269 s)
Example
× should have welcome screen (4 ms)
● Example › should have welcome 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."
1 | describe('Example', () => {
> 2 | beforeAll(async () => {
| ^
3 | await device.launchApp();
4 | });
5 |
at beforeAll (e2e/starter.test.js:2:3)
at Object.describe (e2e/starter.test.js:1:1)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 144.487 s, estimated 153 s
Ran all test suites.
11:40:48.433 detox[12700] E Command failed with exit code = 1:
jest --config e2e/jest.config.js
What happened?
I followed the instructions provided here - https://wix.github.io/Detox/docs/introduction/project-setup
I am able to build the project and generate the required APKs (including the test apk). However, detox fails to connect to the test app(s).
adblogs.txt
The execution command that I use:
detox test --configuration android.att.debug
Logs:
My
.detoxrc.js
file:My
android\build.gradle
file:My
app\build.gradle
contains the following:My jestconfig.js
My starter.test.js
What was the expected behaviour?
No response
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.26.2
React Native version: 0.64.4
Node version: 16.20.0
Android version: Android 10
Test-runner (select one): jest / other : jest
Detox logs
Detox logs
Device logs
Device logs
More data, please!
No response
The text was updated successfully, but these errors were encountered: