~/talk

Testing: how hard can it be?

Talkat droidcon Berlin 2022 · 2022-07-06..07-08· [testing, android]
slides:none on file

Builds a Compose login flow and proves it with JVM tests that exercise ViewModel coroutines, a Retrofit/Moshi API client, and an EncryptedSharedPreferences-backed token store; uses an in‑memory settings implementation and a real API data source fed by JSON fixtures for API responses so parsing is verified, and resorts to Robolectric for Android APIs only to test the Wear callback client. Tests cover initial UI state, the two‑step authenticate+token exchange, and survive an architecture rewrite, so the flow actually works and stays stable.

AI-written summary · about

  1. 0:00Introduction and testing journey
  2. 5:03Testing pyramid theory vs reality
  3. 10:00Starting the login feature project
  4. 16:18Refactoring operations and settings
  5. 22:57Testing external dependencies and APIs
  6. 28:14Unit testing myths and behavior focus
  7. 32:56Optimizing test pyramid and stability
  8. 34:44Summary and Q&A
~/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.