utzcoz
utzcoz
> That worked for me. Looks like this issue could be closed? If those tests only run `Robolectric`, we can use `ParameterizedRobolectricTestRunner` by following https://github.com/android/android-test/issues/283#issuecomment-638705886. But I found @tiwiz 's...
@sayasheng @wangprofessor @biezhihua , could you provide a sample to reproduce this problem? It will help to validate and fix this problem.
> @utzcoz Have you made any progress? Sorry for that. Looks like Brett and other maintainers are busy recently. I will take look at this issue this week before they...
> > @sayasheng @wangprofessor @biezhihua , could you provide a sample to reproduce this problem? It will help to validate and fix this problem. > > https://github.com/biezhihua/ActivityScenarioTestDemo > > I...
> E/TestRunner( 3422): java.lang.AssertionError: Activity never becomes requested state "[RESUMED, CREATED, DESTROYED, STARTED]" (last lifecycle transition = "PRE_ON_CREATE") Okay, I reproduce this problem with my local sample app. It will...
Looks like androidx.test core uses `MonitoringInstrumentation` to receive Activity state from instrumentation, and it doesn't receive state correctly state from `Instrumentation` when started Activity with specific process.
Found a sample to test multiprocess: https://github.com/android/android-test/tree/9d25d24ec7abe5021672c0423a992e87b44eb261/testapps/multiprocess_testapp. Maybe you can check it whether it can help you.
> Found a sample to test multiprocess: https://github.com/android/android-test/tree/9d25d24ec7abe5021672c0423a992e87b44eb261/testapps/multiprocess_testapp. Maybe you can check it whether it can help you. It looks like related to Robolectric tests. Hi @brettchabot , does `ActivityScenario`...
Found another tutorial to test app with multi-process with espresso remote: https://developer.android.com/training/testing/espresso/multiprocess.
> Found another tutorial to test app with multi-process with espresso remote: https://developer.android.com/training/testing/espresso/multiprocess. From testing result, we can start an Activity in default process with `ActivityScenario`, and start another Activity...