Android testing interview questions
Local and instrumented tests, fakes, coroutine and Flow testing, Compose UI tests, screenshots and flaky tests.
– 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
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.
Turbine
Turbine is a small library for testing Flows with awaitItem(), awaitComplete() and awaitError().
UnconfinedTestDispatcher
UnconfinedTestDispatcher starts coroutines eagerly; StandardTestDispatcher queues them until advanced.
Robolectric
Robolectric runs Android framework code on the JVM, so some Android tests run without a device.
Gradle Managed Devices
Gradle Managed Devices define emulators in the build so CI can run instrumented tests.
Printable cheat sheet · Review your weak spots in this topic
Share your progress
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