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
Paola-Mac:AwesomeProject paolamoreno$ yarn test:android --loglevel verbose
yarn run v1.7.0
$ detox test -c android.emu.debug --loglevel verbose
node_modules/.bin/jest e2e --config=e2e/config.json --maxWorkers=1 --testNamePattern='^((?!:ios:).)*$'
server listening on localhost:56385...
onOpen [object Object]
send: {"type":"login","params":{"sessionId":"0d1cceb1-67d6-e18c-c2da-33138b6bd350","role":"tester"},"messageId":0}
onMessage: {"type":"loginSuccess","params":{"sessionId":"0d1cceb1-67d6-e18c-c2da-33138b6bd350","role":"tester"},"messageId":0}
rbx
finalized artifacts successfully
FAIL e2e/example.spec.js
Example
✕ should have welcome screen (10ms)
○ skipped 2 tests
● Example › should have welcome screen
app binary not found at '/Users/paolamoreno/Desktop/AwesomeProject/android/app/build/outputs/apk/debug/app-debug.apk', did you build it?
at Device._getAbsolutePath (../node_modules/detox/src/devices/Device.js:281:13)
at Device.prepare (../node_modules/detox/src/devices/Device.js:45:29)
at Detox.init (../node_modules/detox/src/Detox.js:59:23)
● Example › should have welcome screen
ReferenceError: device is not defined
1 | describe('Example', () => {
2 | beforeEach(async () => {
> 3 | await device.reloadReactNative();
| ^
4 | });
5 |
6 | test.only('should have welcome screen', async () => {
at Object._callee$ (example.spec.js:3:13)
at tryCatch (../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../node_modules/regenerator-runtime/runtime.js:296:22)
at Generator.prototype.(anonymous function) [as next] (../node_modules/regenerator-runtime/runtime.js:114:21)
at tryCatch (../node_modules/regenerator-runtime/runtime.js:62:40)
at invoke (../node_modules/regenerator-runtime/runtime.js:152:20)
at ../node_modules/regenerator-runtime/runtime.js:195:11
at callInvokeWithMethodAndArg (../node_modules/regenerator-runtime/runtime.js:194:16)
at AsyncIterator.enqueue (../node_modules/regenerator-runtime/runtime.js:217:13)
at AsyncIterator.prototype.(anonymous function) [as next] (../node_modules/regenerator-runtime/runtime.js:114:21)
at Object.<anonymous>.runtime.async (../node_modules/regenerator-runtime/runtime.js:241:14)
at Object._callee (example.spec.js:2:16)
● Example › should have welcome screen
ReferenceError: element is not defined
4 | });
5 |
> 6 | test.only('should have welcome screen', async () => {
| ^
7 | await expect(element(by.id('welcome'))).toBeVisible();
8 | });
9 |
at Object._callee2$ (example.spec.js:6:45)
at tryCatch (../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../node_modules/regenerator-runtime/runtime.js:296:22)
at Generator.prototype.(anonymous function) [as next] (../node_modules/regenerator-runtime/runtime.js:114:21)
at tryCatch (../node_modules/regenerator-runtime/runtime.js:62:40)
at invoke (../node_modules/regenerator-runtime/runtime.js:152:20)
at ../node_modules/regenerator-runtime/runtime.js:195:11
at callInvokeWithMethodAndArg (../node_modules/regenerator-runtime/runtime.js:194:16)
at AsyncIterator.enqueue (../node_modules/regenerator-runtime/runtime.js:217:13)
at AsyncIterator.prototype.(anonymous function) [as next] (../node_modules/regenerator-runtime/runtime.js:114:21)
at Object.<anonymous>.runtime.async (../node_modules/regenerator-runtime/runtime.js:241:14)
at Object._callee2 (example.spec.js:6:45)
● Example › should show hello screen after tap
app binary not found at '/Users/paolamoreno/Desktop/AwesomeProject/android/app/build/outputs/apk/debug/app-debug.apk', did you build it?
at Device._getAbsolutePath (../node_modules/detox/src/devices/Device.js:281:13)
at Device.prepare (../node_modules/detox/src/devices/Device.js:45:29)
at Detox.init (../node_modules/detox/src/Detox.js:59:23)
● Example › should show world screen after tap
app binary not found at '/Users/paolamoreno/Desktop/AwesomeProject/android/app/build/outputs/apk/debug/app-debug.apk', did you build it?
at Device._getAbsolutePath (../node_modules/detox/src/devices/Device.js:281:13)
at Device.prepare (../node_modules/detox/src/devices/Device.js:45:29)
at Detox.init (../node_modules/detox/src/Detox.js:59:23)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 2 skipped, 3 total
Snapshots: 0 total
Time: 2.476s
Ran all test suites matching /e2e/i with tests matching "^((?!:ios:).)*$".
child_process.js:644
throw err;
^
Error: Command failed: node_modules/.bin/jest e2e --config=e2e/config.json --maxWorkers=1 --testNamePattern='^((?!:ios:).)*$'
at checkExecSyncError (child_process.js:601:13)
at Object.execSync (child_process.js:641:13)
at runJest (/Users/paolamoreno/Desktop/AwesomeProject/node_modules/detox/local-cli/detox-test.js:146:6)
at run (/Users/paolamoreno/Desktop/AwesomeProject/node_modules/detox/local-cli/detox-test.js:81:7)
at Object.<anonymous> (/Users/paolamoreno/Desktop/AwesomeProject/node_modules/detox/local-cli/detox-test.js:191:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
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.
Description
I'm trying to run the android test but in simply breaks with this error:
I have tried:
change the binaryPath from "android/app/build/outputs/apk/debug/app-debug.apk" to
completed steps from https://github.com/wix/detox/blob/master/docs/Introduction.Android.md
In IOS works like a charm, but with Android I'm having this issue.
Steps to Reproduce
react-native init AwesomeProject
Complete
Getting started guide
from https://github.com/wix/detox/blob/master/docs/Introduction.GettingStarted.mdBuild detox
yarn build:android
Run test
yarn test:android
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
Package.json
Thanks!
The text was updated successfully, but these errors were encountered: