~/talk

The Testing Pyramid – What does it mean for Android?

Talkat 360|AnDev 2020 · on Friday, 2020-07-24· [testing, android]
links:none on file
slides:none on file

Argues that adding lots of small UI unit tests — rendering view states with a mocked presenter and checking tags/content descriptions — catches UI bugs faster than sparse end‑to‑end suites. Uses JUnit + Mockito + Espresso for these tests, suggests Spec for clearer given/when/then naming, and always mocks network calls. Example: 38 widget UI unit tests run in ~16–17s (avg <0.5s each) versus two end‑to‑end checks in ~6s (avg ~1.5s), claiming roughly 300x speedup for equivalent assertions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:40Why write tests
  3. 5:58The Testing Pyramid
  4. 13:18Unidirectional Data Flow
  5. 16:58Kotlin Data Classes
  6. 19:08UI Unit Test
  7. 21:53EndtoEnd Tests
  8. 24:38Unit Tests
  9. 26:03Spec
  10. 27:10JUnit
  11. 28:05Spec Tests
  12. 29:18Summary
  13. 30:00Android module UI tests
  14. 30:59Questions
  15. 31:13Do UI Unit Tests work with Roboelectric
  16. 31:36Can UI Unit Tests test content descriptions
  17. 32:22When should we mock network calls
  18. 33:33Real questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.