~/talk

Good Test, Bad Test

Talkat PyGotham 2019 · 2019-10-04..10-05· [testing]
slides:none on file

Argues tests must be fast, selective, repeatable and helpful by failing loudly with useful messages; warns that chasing 100% coverage leads to brittle tests when code touches the internet (examples: S3) so avoid testing the internet and keep plumbing dumb and asserted. Recommends one clear behavior per test — literally one assertion per test — and replaces mocks with verified doubles (or ship doubles with libraries) to prevent false positives and fragile suites.

AI-written summary · about

  1. 0:00Introduction to testing talk
  2. 0:20What makes a good test
  3. 3:54Myth of 100% coverage
  4. 7:08Avoid asserting everything
  5. 11:22Dangers of mocking
  6. 15:49Test smells and design
  7. 16:51Q&A on third-party APIs
  8. 17:55Q&A on test runners
  9. 19:23Q&A on test dependencies
  10. 20:28Q&A on real vs mocked databases
  11. 24:00Closing and thanks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.