1A teammate puts every new test in src/androidTest because "it is an Android app" — what does that cost, and what actually belongs there?Easy
2A plain JUnit test fails with java.lang.RuntimeException: Method d in android.util.Log not mocked — what is that stub, and what are your ways out?Easy
3A CI run fails with expected:<false> but was:<true> and nobody can tell what broke — what is wrong with how that test was written?Easy
4You need to stub a final Kotlin repository whose methods are suspend — how does MockK handle that, and when is a hand-written fake the better answer?Medium
5A test calls vm.state.toList() on a StateFlow and the suite hangs until CI kills it — what does Turbine do differently?Medium
6Switching StandardTestDispatcher to UnconfinedTestDispatcher turns a red test green with no production change — which one was telling the truth?Medium
7A colleague calls the Robolectric suite "instrumented tests that just run fast" — what is Robolectric actually substituting, and where does that substitution mislead you?Medium
8Your ViewModel takes a SavedStateHandle, reads a string from Context, and registers a lifecycle observer that never fires in the test — how do you build what the system usually builds?Medium
9An Espresso test asserts on data the screen loads over the network and fails every second run — what does Espresso wait for on its own, and what does it not?Medium
10Your Compose test fails with "no node matched" on onNodeWithTag("price") although the price is plainly on screen — what does the test actually see?Medium
11A Compose test hangs on its first assertion while a CircularProgressIndicator is on screen — why, and how do you move it forward without Thread.sleep?Medium
12The team says "the ViewModel handles it" — how do you actually prove a half-filled form comes back after Android kills the process?Medium
13You want screenshot tests but not an emulator in every PR — how do Paparazzi, Roborazzi and on-device captures differ, and what keeps a golden stable?Hard
14One CI run in twenty-five fails on a different instrumented test each time — how do you attribute the flake and get a failure you can reproduce?Hard
15How do you test an upload that only runs once WorkManager decides its constraints are met, without waiting on the real scheduler?Hard
16Leadership wants 80% line coverage on every module — what do you tell them, and what would you gate the build on instead?Hard