~/talk

Test Kitchen: A Recipe for Good Tests

Claim: tests must inspire confidence and be automated, fast, deterministic and isolated. Concrete practices: run unit tests in watch and CI on branch and main, run tests in parallel, mock slow dependencies and mock timers for determinism, isolate side effects by injecting utilities, extract business logic for unit testing, use fast environments like jsdom and tools such as Cypress and Testing Library for higher-level flows, reset globals between tests, and favor behavioral assertions over peeking at internals.

AI-written summary · about

  1. 0:00Introduction
  2. 1:53Confidence
  3. 2:55Automation
  4. 3:50When should automated tests run
  5. 4:45When should automated tests not run
  6. 5:07How to make tests fast
  7. 6:06Test tools
  8. 6:31Tests should be behavioral
  9. 6:52Test from the consumer perspective
  10. 7:28Testing a counter component
  11. 8:05Testing behavior
  12. 8:54Testing properties
  13. 10:35Testing example
  14. 11:20Testing tips
  15. 12:33Testing random numbers
  16. 12:49Extracting business logic
  17. 13:08Race conditions
  18. 13:25Failures
  19. 13:39Specific Tests
  20. 13:55Split Test Cases
  21. 15:14Reading Tests
  22. 15:50Short Tests
  23. 16:02Extract Test Functions
  24. 16:28Test Library
  25. 17:11Visual Regression Tests
  26. 17:43Hacky Tests
  27. 18:09Permit
  28. 18:47Predictive
  29. 19:15What tests do you need
~/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.