~/talk

The Importance of Being Tested

Talkat droidcon Berlin 2021 · 2021-10-20..10-22· [android]
slides:none on file

Argues that tests must target behavior not call order, and that dependencies must be injected rather than built inside classes so coroutines, dispatchers and network engines are replaceable. Shows a fragment that updates from a repository on resume and a Compose counter UI that is verified with composeTestRule. Recommends Retrofit + MockWebServer or Ktor mock engine for network, Robolectric for local Android, Espresso for full UI, notes green builds take ~7–8 min and incremental builds 1–2 min.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Why testing matters
  3. 3:00Avoid building dependencies
  4. 6:17Test logic not code
  5. 11:40Types of tests
  6. 13:56Integration testing explained
  7. 18:13Speed up Android tests
  8. 21:04Fragment integration test
  9. 24:36Network testing strategies
  10. 27:54Retrofit mock server
  11. 30:23Ktor mock engine
  12. 32:13UI testing with Espresso
  13. 35:25Jetpack Compose testing
  14. 38:40How to start testing
~/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.