Skip to content
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

No instrumentation runner found on device #1106

Closed
pranaybiswas2611 opened this issue Jan 2, 2019 · 0 comments
Closed

No instrumentation runner found on device #1106

pranaybiswas2611 opened this issue Jan 2, 2019 · 0 comments

Comments

@pranaybiswas2611
Copy link

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

  • Detox: 9.1.2
  • React Native: 0.55.0
  • Node: 11.6.0

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)

  1. "before all" hook

0 passing (2m)
1 failing

  1. "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)

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)

@lock lock bot locked as resolved and limited conversation to collaborators Jan 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant