No information about instrumentation was found in AndroidManifest.xml
JivinDotL opened this issue · comments
like this:
adb shell am instrument -w -r -e class com.test.sample.ExampleInstrumentedTest#useAppContext com.test.sample/android.test.InstrumentationTestRunner
INSTRUMENTATION_RESULT: shortMsg=Process crashed.
INSTRUMENTATION_CODE: 0
Can you share me a demo with instrumentation in AndroidManifest.xml? and can use 'adb shell am instrument -w -r -e class ....'
.... .... in AndroidManifest.xml
<instrumentation
android:name="ade.tec.runner"
android:targetPackage="com.example.android.testing.androidjunitrunnersample"
android:handleProfiling="false"
android:functionalTest="false"
android:label="Tests for Instrumentation."/>
adb uninstall com.example.android.testing.androidjunitrunnersample.test
adb uninstall com.example.android.testing.androidjunitrunnersample
adb shell pm list instrumentation
adb install -r -t .\app\build\outputs\apk\debug\app-debug.apk
adb shell "am instrument -w com.example.android.testing.androidjunitrunnersample/ade.tec.runner"
INSTRUMENTATION_RESULT: shortMsg=Process crashed.
INSTRUMENTATION_CODE: 0
Needs additional context / full STR is unclear. Likely stale.
Recommend closing issue.