Get next info message:
Testing started at 12:26 PM ...
03/02 12:26:53: Launching 'All tests in app' on Xiaomi Redmi Note 8. Running tests
$ adb shell CLASSPATH=$(pm path androidx.test.services) app_process / androidx.test.services.shellexecutor.ShellMain am instrument -r -w -e targetInstrumentation com.mandarine.authenticator.tests/androidx.test.runner.AndroidJUnitRunner --no-window-animation -e package com.mandarine.authenticator.unitTests -e debug false androidx.test.orchestrator/androidx.test.orchestrator.AndroidTestOrchestrator
Started running tests
Test running failed: No test results
But when i deleted this option, tests run:
testOptions {
execution 'ANDROID_TEST_ORCHESTRATOR'
}
UPD:
Updated dependencies ANDROIDX_TEST_ORCHESTRATOR , and get next error: Test running failed: Instrumentation run failed due to 'Process crashed.'
Get next error in Logcat:
2020-03-03 10:21:38.333 2869-2892/? E/AndroidTestOrchestrator: Fatal exception when setting up. java.lang.IllegalStateException: Permission requested but not granted! at androidx.test.orchestrator.AndroidTestOrchestrator.grantRuntimePermissions(AndroidTestOrchestrator.java:231) at androidx.test.orchestrator.AndroidTestOrchestrator.onStart(AndroidTestOrchestrator.java:201) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2154) 2020-03-03 10:21:38.346 2869-2892/? E/AndroidRuntime: FATAL EXCEPTION: Instr: androidx.test.orchestrator.AndroidTestOrchestrator Process: androidx.test.orchestrator, PID: 2869 java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.app.Instrumentation.getContext()' on a null object reference at androidx.test.orchestrator.listeners.OrchestrationXmlTestRunListener.createOutputResultStream(OrchestrationXmlTestRunListener.java:253) at androidx.test.orchestrator.listeners.OrchestrationXmlTestRunListener.generateDocument(OrchestrationXmlTestRunListener.java:191) at androidx.test.orchestrator.listeners.OrchestrationXmlTestRunListener.orchestrationRunFinished(OrchestrationXmlTestRunListener.java:178) at androidx.test.orchestrator.AndroidTestOrchestrator.finish(AndroidTestOrchestrator.java:443) at androidx.test.orchestrator.AndroidTestOrchestrator.onStart(AndroidTestOrchestrator.java:210) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2154)
ANDROIDX_TEST_ORCHESTRATOR, and get next error: Test running failed: Instrumentation run failed due to 'Process crashed.' - Morozov