Modern Testing on Android
summary
A tiny app called Sooth exposes a broken regex email validator that causes a .co.uk regression and shows why unit tests catch regressions early; tests use Jetpack Compose for UI checks, Compose testing APIs or Espresso, and local vs instrumented runs via Robolectric. Pixel checks use screenshot frameworks like Paparazzi or Dropshots/Shot with golden images. Dependency injection swaps use HiltAndroidTest modules to inject fakes, and flaky waits are handled with idling resources or explicit wait-untils. Continuous integration runs build, unit, smoke and screenshot tests.
AI-written summary · about
chapters (11)
- 0:00Introduction to modern testing
- 1:54Why testing matters
- 5:03Unit and integration tests
- 7:53Local vs instrumented tests
- 13:53UI test strategies
- 17:44Screenshot testing
- 21:55Solving sync issues
- 26:28Dependency injection in tests
- 28:13Practical testing steps
- 32:28Resources and next steps
- 33:51Closing and Q&A








