Skip to content

Parameterized tests fail with "Test framework quit unexpectedly" when trying to run a single test. #960

@Colecf

Description

@Colecf

Description

When running a Parameterized instrumentation test with a custom name with AndroidJUnitRunner, specifying an individual test method causes the tests to fail with a "Test framework quit unexpectedly" error. This applies when using android studio's green arrows to launch a test, or when using adb shell am instrument.

screenshot

Steps to Reproduce

Create a basic parameterized test with a custom parameter name and try running an individual method.

Expected Results

One method should run and give a successful result.

Actual Results

"Test framework quit unexpectedly" error.

AndroidX Test and Android OS Versions

androidx.test.ext:junit:1.1.2. TOT build of android 12, and also the pixel 4 android 11 emulator downloaded from android studio.

Link to a public git repo demonstrating the problem:

https://github.com/Colecf/Android-Parameterized-Test-Issue-Repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions