~/talk

Structure and Interpretation of Test Cases

Talkat GOTO Amsterdam 2022 · 2022-06-12..06-16· [testing]
slides:none on file

A practical guide to structuring unit tests that shows concrete rules, examples and numbers: implements the leap year rule with four mutually exclusive leap-year cases and moves those cases into nested suites and parameterized data for clearer intent; contrasts imperative and functional FizzBuzz implementations and the resulting metrics — 25% path coverage vs 100% statement coverage — to warn about misleading coverage targets; advocates small focused tests, proposition-style names, and property-based checks that assert ordinal and divisibility properties.

AI-written summary · about

  1. 0:00Intro
  2. 4:09Quote Structure & Interpretation of Computer Programs
  3. 5:27Quotes Marit van Dijk
  4. 10:56Testing approaches today
  5. 13:24Continuous testing
  6. 14:52Case: Leap year
  7. 28:55Quote Nat Pryce & Steve Freeman
  8. 29:44Case: Leap year continued
  9. 37:33FizzBuzz
  10. 39:00Quote Brian Marick
  11. 39:36FizzBuzz continued
  12. 43:15Quote Richard Feynman
  13. 43:43FizzBuzz continued
  14. 45:14Niklaus Wirth
  15. 46:07Outro
~/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.