I am using Product Flavors with Android Expresso.
When running the tests I get the following error:
android.util.AndroidException: INSTRUMENTATION_FAILED: http://ift.tt/2yLvu5N
nstrumentation stderr:
nstrumentation stderr:
nstrumeat com.android.commands.am.Instrument.run(Instrument.java:410)
nstrumeat com.android.commands.am.Am.runInstrument(Am.java:232)
nstrumeat com.android.commands.am.Am.onRun(Am.java:125)
nstrumeat com.android.internal.os.BaseCommand.run(BaseCommand.java:54)
nstrumeat com.android.commands.am.Am.main(Am.java:95)
nstrumeat com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
nstrumeat com.android.internal.os.RuntimeInit.main(RuntimeInit.java:284)
nstrumentation stderr:
INSTRUMENTATION_STATUS: id=ActivityManagerService
INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{http://ift.tt/2yLvu5N}
INSTRUMENTATION_STATUS_CODE: -1
nstrumentation stdout:
nstrumentationProcess terminated due to receipt of signal null
Then when running adb shell pm list instrumentation
it doesn't show the dev target:
instrumentation:com.android.emulator.smoketests/android.support.test.runner.AndroidJUnitRunner (target=com.android.emulator.smoketests)
instrumentation:com.android.smoketest.tests/com.android.smoketest.SmokeTestRunner (target=com.android.smoketest)
instrumentation:http://ift.tt/1kgLcJ4 (target=com.example.android.apis)
instrumentation:http://ift.tt/2yLwvLa (target=com.app.android)
instrumentation:org.chromium.webview_shell/.WebViewLayoutTestRunner (target=org.chromium.webview_shell)
I have tried setting the testApplicationId
like it says here to com.app.android.dev.test
but the target in the instrumentation stays set to target=com.app.android
.
Aucun commentaire:
Enregistrer un commentaire