Android testing interview questions

Local and instrumented tests, fakes, coroutine and Flow testing, Compose UI tests, screenshots and flaky tests.

4 quick facts

– interview-ready · 9 questions in this topic

– of 9 tried

Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.

Questions

  1. Local vs instrumented testsPick the fix
  2. Fakes, mocks and stubsPick the fix
  3. Testing coroutines with runTestPredict
  4. Testing FlowsPick the fix
  5. Testing a ViewModelOrder the steps
  6. Compose UI testsFill the blank
  7. Screenshot testsPick the fix
  8. Testing Room and migrationsOrder the steps
  9. Flaky testsPick the fix

Practise this topic

Flashcards · 13

Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.

Quick quiz · 9 questions

One exercise per question, checked as you go. Needs JavaScript.

Mock interview · 1 set

Timed, out loud, then tick what you covered. Needs JavaScript.

Quick facts

Recall the answer first, then tap Show to check.

Sources: Question outline adapted from Android-Interview-Questions by Mohsen Mirhoseini, licensed under Apache 2.0. We reorganised the questions, rewrote every answer and added new ones. Credits and license