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
running detox test -c android.emu.debug but getting error
detox[42049] ERROR: [index.js/DETOX_INIT_ERROR]
Error: No instrumentation runner found on device HNB19KQ0 for package com.unacademyapp.debug
at ADB.getInstrumentationRunner (/Users/pranaybiswas/native_app/unacademy-native/node_modules/detox/src/devices/android/ADB.js:251:13)
"before all" hook:
Error: No instrumentation runner found on device HNB19KQ0 for package com.unacademyapp.debug
at ADB.getInstrumentationRunner (node_modules/detox/src/devices/android/ADB.js:251:13)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration android.emu.debug --loglevel verbose --grep :ios: --invert --artifacts-location "artifacts/android.emu.debug.2019-01-02 11-37-48Z"
at checkExecSyncError (child_process.js:622:11)
at Object.execSync (child_process.js:659:13)
at runMocha (/Users/pranaybiswas/native_app/unacademy-native/node_modules/detox/local-cli/detox-test.js:129:6)
at run (/Users/pranaybiswas/native_app/unacademy-native/node_modules/detox/local-cli/detox-test.js:82:7)
at Object. (/Users/pranaybiswas/native_app/unacademy-native/node_modules/detox/local-cli/detox-test.js:217:1)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
The text was updated successfully, but these errors were encountered:
running detox test -c android.emu.debug but getting error
detox[42049] ERROR: [index.js/DETOX_INIT_ERROR]
Error: No instrumentation runner found on device HNB19KQ0 for package com.unacademyapp.debug
at ADB.getInstrumentationRunner (/Users/pranaybiswas/native_app/unacademy-native/node_modules/detox/src/devices/android/ADB.js:251:13)
"android.emu.debug": {
"binaryPath": "android/app/build/outputs/apk/debug/app-armeabi-v7a-debug.apk",
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
"type": "android.attached",
"name": "HNB19KQ0"
},
Detox, Node, Device, Xcode and macOS Versions
verbose log
Pranays-MacBook-Pro:unacademy-native pranaybiswas$ detox test -c android.emu.debug -l verbosenode_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration android.emu.debug --loglevel verbose --grep :ios: --invert --artifacts-location "artifacts/android.emu.debug.2019-01-02 11-37-48Z"
detox[42049] INFO: [DetoxServer.js] server listening on localhost:64932...
detox[42049] DEBUG: [AsyncWebSocket.js/WEBSOCKET_OPEN] opened web socket to: ws://localhost:64932
detox[42049] DEBUG: [DetoxServer.js/LOGIN] role=tester, sessionId=5aaae2e7-7dbd-4763-435a-0dff0707103b
detox[42049] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=tester, sessionId=5aaae2e7-7dbd-4763-435a-0dff0707103b
detox[42049] DEBUG: [exec.js/EXEC_CMD, #0] /Users/pranaybiswas/Library/Android/sdk/platform-tools/adb devices
detox[42049] DEBUG: [exec.js/EXEC_CMD, #1] /Users/pranaybiswas/Library/Android/sdk/platform-tools/adb -s HNB19KQ0 shell "getprop ro.build.version.sdk"
detox[42049] DEBUG: [exec.js/EXEC_CMD, #2] /Users/pranaybiswas/Library/Android/sdk/platform-tools/adb -s HNB19KQ0 shell "dumpsys power | grep "^[ ]m[UW].=""
detox[42049] DEBUG: [exec.js/EXEC_CMD, #3] /Users/pranaybiswas/Library/Android/sdk/build-tools/28.0.3/aapt dump badging "/Users/pranaybiswas/native_app/unacademy-native/android/app/build/outputs/apk/debug/app-armeabi-v7a-debug.apk" | grep -e "package: name="
detox[42049] DEBUG: [exec.js/EXEC_CMD, #4] /Users/pranaybiswas/Library/Android/sdk/platform-tools/adb -s HNB19KQ0 shell "pm list packages com.unacademyapp.debug"
detox[42049] DEBUG: [exec.js/EXEC_CMD, #5] /Users/pranaybiswas/Library/Android/sdk/platform-tools/adb -s HNB19KQ0 uninstall com.unacademyapp.debug
detox[42049] DEBUG: [exec.js/EXEC_CMD, #6] /Users/pranaybiswas/Library/Android/sdk/platform-tools/adb -s HNB19KQ0 shell "pm list packages com.unacademyapp.debug.test"
detox[42049] DEBUG: [exec.js/EXEC_CMD, #7] /Users/pranaybiswas/Library/Android/sdk/platform-tools/adb -s HNB19KQ0 install -rg /Users/pranaybiswas/native_app/unacademy-native/android/app/build/outputs/apk/debug/app-armeabi-v7a-debug.apk
detox[42049] DEBUG: [exec.js/EXEC_CMD, #8] /Users/pranaybiswas/Library/Android/sdk/platform-tools/adb -s HNB19KQ0 install -rg /Users/pranaybiswas/native_app/unacademy-native/android/app/build/outputs/androidTest/armeabiV7a/debug/app-armeabi-v7a-debug-androidTest.apk
detox[42049] DEBUG: [exec.js/EXEC_CMD, #9] /Users/pranaybiswas/Library/Android/sdk/platform-tools/adb -s HNB19KQ0 shell "am force-stop com.unacademyapp.debug"
detox[42049] DEBUG: [exec.js/EXEC_CMD, #10] /Users/pranaybiswas/Library/Android/sdk/platform-tools/adb -s HNB19KQ0 shell "pmlist instrumentation"
detox[42049] ERROR: [index.js/DETOX_INIT_ERROR]
Error: No instrumentation runner found on device HNB19KQ0 for package com.unacademyapp.debug
at ADB.getInstrumentationRunner (/Users/pranaybiswas/native_app/unacademy-native/node_modules/detox/src/devices/android/ADB.js:251:13)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
0 passing (2m)
1 failing
Error: No instrumentation runner found on device HNB19KQ0 for package com.unacademyapp.debug
at ADB.getInstrumentationRunner (node_modules/detox/src/devices/android/ADB.js:251:13)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
detox[42049] DEBUG: [DetoxServer.js/DISCONNECT] role=tester, sessionId=5aaae2e7-7dbd-4763-435a-0dff0707103b
child_process.js:662
throw err;
^
Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration android.emu.debug --loglevel verbose --grep :ios: --invert --artifacts-location "artifacts/android.emu.debug.2019-01-02 11-37-48Z"
at checkExecSyncError (child_process.js:622:11)
at Object.execSync (child_process.js:659:13)
at runMocha (/Users/pranaybiswas/native_app/unacademy-native/node_modules/detox/local-cli/detox-test.js:129:6)
at run (/Users/pranaybiswas/native_app/unacademy-native/node_modules/detox/local-cli/detox-test.js:82:7)
at Object. (/Users/pranaybiswas/native_app/unacademy-native/node_modules/detox/local-cli/detox-test.js:217:1)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
The text was updated successfully, but these errors were encountered: