~/talk

Fallacies of Unit Testing

slides:none on file

Argues that unit tests become brittle, implementation‑aware and inflate design by adding interfaces and mocks, and that many projects get poor ROI from them. Builds an ASP.NET Core API with LocationProvider, SolarCalculator and a Redis cache, exercises the full HTTP pipeline with WebApplicationFactory and Redis in Docker via xUnit fixtures, injects a startup filter to fake client IPs, and replaces fragile unit assertions with functional tests that run in memory, are deterministic and finish with single‑second latencies.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:49Clarifying unit testing definitions
  3. 5:57What is a unit in unit testing
  4. 7:23Isolation and mocking in unit tests
  5. 9:11Purpose of unit testing
  6. 10:15Example of non-unit-testable code
  7. 11:58Design impact of unit testing
  8. 13:23Drawbacks of unit testing
  9. 15:29Unit tests rely on implementation details
  10. 17:35Unit tests complicate design
  11. 18:17Unit tests are expensive
  12. 20:04Limited purpose of unit tests
  13. 21:07User value and testing layers
  14. 23:15Practical test pyramid assumptions
  15. 25:44Fallacies of the test pyramid
  16. 29:35Reality-driven testing approach
  17. 32:44Functional requirements and tests
  18. 36:15Guidelines for better testing
  19. 37:36Functional test example setup
  20. 40:00Integration testing with ASP.NET Core
  21. 41:45Using Docker for test dependencies
  22. 43:12Writing functional end-to-end tests
  23. 45:15Injecting test data for assertions
  24. 47:43Balancing integration scope and cost
  25. 48:28Summary and key takeaways
~/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.