~/talk

Program with GUTS

Talkat Craft Conference 2024 · 2024-05-30..05-31· [testing]
slides:none on file

Argues that good unit tests are specifications and documentation, not just pass/fail checks, and demonstrates concrete patterns in JUnit (including JUnit 5 display-name generators): name each test as a clear proposition, make failures pinpoint the broken rule, and prefer parameterized tests to avoid duplicated examples. Uses the leap year rule to show four mutually exclusive cases (not divisible by 4; divisible by 4 but not 100; divisible by 100 but not 400; divisible by 400), notes only about 5–10% of developers know the full rule, and models queues with state-centric tests (capacity, length, enqueue/dequeue).

AI-written summary · about

  1. 0:00Introduction
  2. 1:07Unit tests and guts focus
  3. 3:56What makes good unit tests
  4. 8:55Leap year example and test names
  5. 17:25Writing tests for people
  6. 20:34Leap year rules to testable code
  7. 24:44Refining test names
  8. 27:17Failing tests reveal problems
  9. 30:10Meaningful test names
  10. 34:01Tests as specifications
  11. 37:09Parameterized tests
  12. 40:18Error cases and edge conditions
  13. 42:45Queue example
  14. 44:52Queue test smells
  15. 46:18State transition tests
  16. 49:30Given-when-then structure
  17. 50:12Q&A
~/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.