~/talk

My 25 Laws of Test Driven Development

Talkat NDC Porto 2023 · 2023-10-16..10-20· [testing]
slides:none on file

Claims 35+ concise rules distilled from 15 years of TDD practice: organize code into functional slices and align test scope to those slices, prefer small integration-like units over pointless adapters, avoid unnecessary interfaces and don't mock mocks. Uses concrete tools: spins up testcontainers for .NET to run real databases in tests, runs in-process HTTP requests instead of calling controller methods, and relies on Fluent Assertions and mutation testing to reach ~97% coverage. Counters DRY-driven coupling and insists tests fail for the right reason.

AI-written summary · about

  1. 0:00Introduction
  2. 5:32The TDD process
  3. 9:01Driving design with tests
  4. 10:06Architectural slices
  5. 10:32Dependency inversion
  6. 14:12Avoiding over-refactoring
  7. 16:39Defining the unit
  8. 22:33Testing functional slices
  9. 23:47Test scope guidelines
  10. 24:13Structure and organization
  11. 27:16API testing techniques
  12. 29:13Using databases in tests
  13. 30:02Testing methodologies
  14. 32:09Test terminology
  15. 33:00Test code quality
  16. 34:05Tests as documentation
  17. 36:02Interfaces and mocking
  18. 37:15Effective mocking
  19. 37:49Test data builders
  20. 38:20Test refactoring rules
  21. 38:34Magic numbers and strings
  22. 40:06Data assertions
  23. 41:50Test file naming
  24. 42:51Fact-based naming
  25. 44:12Refactoring techniques
  26. 46:36Debugging prevention
  27. 46:56Test structure tips
  28. 47:28Scenarios
  29. 49:48Conclusion
~/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.