finds.dev

mitchtabian/EspressoUITest-Examples

Examples of UI Testing with Espresso, Mockk, androidx.test

View on GitHub

★ 254Kotlinupdated Apr 2022

// the take

A companion repo to a free Mitch Tabian video course, teaching Espresso UI testing on Android through a series of git branches, each isolating one scenario (fragments, intents, dialogs, toasts, RecyclerViews, navigation) against the same toy movie-list app. It's aimed at Android devs who are new to UI testing and want a worked example instead of just docs.

Good scenario coverage for a beginner resource — intents (camera/gallery) with custom matchers, dialog input capture, and toast detection are all cases the official Espresso docs explain poorly. Using one consistent sample app across every branch means you're diffing testing technique rather than re-learning a new codebase each time. The FragmentFactory + Mockk branch specifically calls out the 'open class for testing' problem that trips up a lot of Kotlin devs moving from Java-era Espresso tutorials.

Organizing examples as separate git branches instead of folders is awkward to browse or grep on GitHub — you have to know the branch names from the README and check each one out individually, there's no single branch where you can diff the examples against each other. No CI config, so nothing verifies these tests still pass on current AGP/Gradle versions. Dead since April 2022: Espresso itself is stable, but Mockk, AGP, and compileSdk have moved on enough that a fresh checkout has a real chance of needing dependency fixes before gradlew even builds. The 'app' used for testing is minimal fake data (FakeMovieData.kt) with no network or database layer, so none of the examples touch the harder real-world cases — idling resources with actual async work, Compose interop, or Hilt-based DI, which is what most teams actually need Espresso help with now.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
254
Forks
154
Language
Kotlin
Last commit
12 Apr 2022

// nearby

If EspressoUITest-Examples isn't quite it.

All repos →