~/talk

Pragmatic Testing

Talkat Droidcon Italy 2018 · 2018-04-19..04-20· [testing]
github:hzsweers
slides:none on file

Shows concrete tactics: prefer checking outputs over internals, replace disk RAM with an in‑memory fake, and exercise the real CPU so tests stop mirroring implementation. Uses mockito, rx java and room test helpers; builds an rx errors rule to surface uncaught errors (finds ~2000 bad tests) and an annotation processor to generate test injection helpers. Reports tests shrink and speed up (mono repo ~1hr → ~20min). Advice: use value as boundary, write fakes, test the public API.

AI-written summary · about

  1. 0:00Start
  2. 0:04Zac Sweers Pragmatic Testing
  3. 1:33Pragmatic? Testing
  4. 3:16Non-Goals
  5. 28:43What about my architecture?
  6. 33:10What about state?
  7. 33:47Value is the boundary
  8. 35:04Fakes are worth writing
  9. 35:29Ship your fakes
  10. 36:19Tests should test the public API
  11. 36:56Semver your tests
  12. 37:42Test are prod code
  13. 39:11Failures should be designed for
~/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.