~/talk

My 19 Laws of Test Driven Development

Talkat Craft Conference 2023 · 2023-05-18..05-19· [testing]
slides:none on file

Claims a concrete TDD recipe for .NET: align test scope with functional slices instead of testing every class, include real database when a type’s job is DB interaction using SQL LocalDB or containers, and test HTTP APIs by sending HTTP requests and asserting responses not by instantiating controllers. Recommends test data builders, AAA or Given/When/Then styles, fewer internal interfaces, characterization tests for legacy code, watches coverage (80–90% reasonable) and cites a library with ~97% coverage as proof these heuristics work.

AI-written summary · about

  1. 0:00Introduction
  2. 2:06TDD productivity plateau
  3. 3:29Designing for testability
  4. 5:13Code by functional slices
  5. 6:59Dependency inversion
  6. 7:41DRY within boundaries
  7. 8:45Test scope alignment
  8. 10:08Reusable components testing
  9. 11:11HTTP API testing
  10. 13:58Databases in unit tests
  11. 15:45Test structuring styles
  12. 16:48Unit vs integration tests
  13. 17:32Test code quality
  14. 18:36Tests as documentation
  15. 19:38Avoiding interfaces
  16. 20:41Dangers of over-mocking
  17. 22:04Clear test failures
  18. 23:30Test data builders
  19. 24:33Tests fail first
  20. 25:39Test readability
  21. 26:43DTOs in assertions
  22. 27:45Debugging tests
  23. 28:28Test naming and organization
  24. 31:18Q&A
  25. 34:28Q&A
  26. 35:54Q&A
  27. 37:41Q&A
  28. 38:44Q&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.