architecture-samples icon indicating copy to clipboard operation
architecture-samples copied to clipboard

Dagger Android with Android Test Orchestrator casues "Test framework quit unexpectedly"

Open andrew-aernos opened this issue 5 years ago • 0 comments

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?

andrew-aernos avatar Mar 06 '20 00:03 andrew-aernos