~/talk

Structure and Interpretation of Test Cases

Talkat NDC London 2019 · 2019-01-30..02-01· [testing]
slides:none on file

Argues that good unit tests act as readable specifications, not mere framework exercises, using JUnit 5, Catch and parameterized/data-driven tests to show what to name, nest and group. Demonstrates with a leap‑year implementation (naive modulo‑4 fails — tests reveal the 4/100/400 classification and the surprising fact that only ~5–10% of developers know the full rule; ~75% of years are non‑leap), plus stack and queue ADT specs. Emphasizes propositional test names, given–when–then narratives and nesting/grouping over mock-heavy or over‑refactored tests.

AI-written summary · about

  1. 0:00Intro
  2. 0:21Title
  3. 1:03Target Audience
  4. 2:03XUnit Test Patterns
  5. 3:00Test Code vs Production Code
  6. 4:31Documentation
  7. 5:00Language
  8. 6:12Guts
  9. 6:36Unit Tests
  10. 13:43Leap Year
  11. 17:36Constructive Advice
  12. 18:41Examples
  13. 19:32Improvements
  14. 20:28Naming Conventions
  15. 26:45Propositions
  16. 29:09Commonality
  17. 29:27Nesting
  18. 30:34Test Data
  19. 32:30Multiples
  20. 33:43Over Programming
  21. 38:03Stacks
  22. 38:33Abstract Data Types
  23. 44:56Strunk and White
  24. 45:13The assert statement
  25. 46:04The name
  26. 46:28Naming
  27. 47:24Stack Specification
  28. 48:09Preconditions
  29. 48:46Deep Observation
~/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.