~/talk

Stop hating your test suite!

Talkat The Conf 2018 · on Wednesday, 2018-11-14· [testing]
links:none on file
slides:none on file

Tests become hated for three concrete reasons: they are slow, complicated to read, and unnecessary or flaky. Recommend focus on unit tests — 6,000 unit specs run in under a minute versus ~30 end-to-end tests taking ~15 minutes and a few integration suites taking minutes — and keep unit/integration/e2e in separate folders or repos. Use test doubles for units, follow AAA: setup, exercise, verify with blank lines, avoid clever DRY that creates mystery, and run e2e only for core flows on staging while running units locally on change.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:36Why we write tests
  3. 4:24Reasons we hate test suites
  4. 9:53Slow tests and test pyramid
  5. 14:14Complicated tests and unclear descriptions
  6. 18:09Test structure and AAA pattern
  7. 22:30Obscure tests and DRY principle
  8. 28:08Unnecessary and fragile tests
  9. 32:25Bad tests vs no tests
  10. 33:49Summary 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.