architecture-samples
architecture-samples copied to clipboard
Dagger Android with Android Test Orchestrator casues "Test framework quit unexpectedly"
In Dagger Android example, when changed the testOptions to use Android Test Orchestrator
testOptions{
execution 'ANDROIDX_TEST_ORCHESTRATOR' // <- add this
unitTests{
includeAndroidResources = true
all {
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
}
}
}
}
then run instrumented tests, the tests will executed on the device but in android studio it will report Test framework quit unexpectedly.
This is probably due to using the CustomTestRunner that extends AndroidJUnitRunner?