Skip to content

Test orchestrator doesn't restart the app process when running a single parametrized test #799

@rciovati

Description

@rciovati

Description

When using parametrized tests, it seems that the orchestator doesn't restart the process when running a single test (i.e from Android Studio). When running the entire test class it works as intended.

Steps to Reproduce

  • git clone git@github.com:rciovati/orchestrator-bug.git
  • Filter the logcat for asdf
  • From Android Studio, run one of the two tests in ExampleInstrumentedTest

Expected Results

D/asdf: Application#onCreate
D/asdf: test one... value: false
D/asdf: Application#onCreate
D/asdf: test one... value: true

Actual Results

D/asdf: Application#onCreate
D/asdf: test one... value: false
D/asdf: test one... value: true

Notes

If you run the entire class you'll see:

D/asdf: Application#onCreate
D/asdf: Application#onCreate
D/asdf: test one... value: false
D/asdf: Application#onCreate
D/asdf: test two... value: false
D/asdf: Application#onCreate
D/asdf: test one... value: true
D/asdf: Application#onCreate
D/asdf: test two... value: true

which is the intended behaviour.

AndroidX Test and Android OS Versions

See the dependencies here: https://github.com/rciovati/orchestrator-bug/blob/main/app/build.gradle#L43-L53

Link to a public git repo demonstrating the problem:

https://github.com/rciovati/orchestrator-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions