Android Testing
summary
A sample note-taking app is built with MVP and two Gradle flavors (prod and mock flavor) so tests run hermetically by swapping real services for in-memory or file-backed fakes. Fast local unit tests use the Mockable Android Jar, UI tests use Espresso with ActivityTestRule, and a performance harness captures dumpsys, Logcat and Systrace per test. Running the harness surfaces a glaring regression — 91% janky frames on one scenario.
AI-written summary · about
chapters (18)
- 0:00Intro
- 1:26Meet your testing tools
- 3:35Notes app
- 7:02Isolate from external dependencies
- 8:06Choose flavors prod/mock
- 8:48Gradle tasks
- 15:03Mockable Android Jar
- 17:05Run from Gradle
- 17:19Test-driven development
- 18:57Run on device/ emulator
- 24:21Add note feature
- 24:42Anatomy of a UI test
- 26:09Add note screen test
- 29:53Go green
- 33:11Perf Testing Harness
- 33:54Custom Test Rules
- 35:00Running the harness
- 35:32Test output








