~/talk

Write awesome tests

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [testing]
slides:none on file

Three concrete rules: tests run under one second (plain JVM not emulator, avoid network DB sleeps), tests stay fast, focused, reliable (one assertion per failure, small setup inlined), and tests optimize for failure (inject time/date into a time formatter to avoid flaky timing). Code coverage is meaningless as proof; use CI diff checks instead. Recommend AssertJ style assertions and Mockito-style mocks but avoid nested mocks and spies; practice TDD red‑green‑refactor for incremental, verifiable behavior.

AI-written summary · about

  1. 0:00Introduction to awesome tests
  2. 1:14Why write unit tests
  3. 3:40Core principles for awesome tests
  4. 8:13Code coverage myths debunked
  5. 12:46Test-driven development explained
  6. 20:35Common testing myths
  7. 24:55Test code vs production code
  8. 32:17Tips for better tests
  9. 39:19Summary and closing
~/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.