~/talk

Stop writing fragile tests - Use SOLID Principles

Talkat DDD Perth 2023 · on Tuesday, 2023-10-10· [testing, software-architecture]
links:none on file
slides:none on file

Builds a React + TypeScript profile component and proves that applying SOLID and DRY to tests reduces copy‑paste and brittle failures, claiming five common reasons teams give up on automation. Uses React Testing Library + user-event, parameterised data-driven tests that map over lists of people, and a reusable create-activate-assert harness. Demonstrates dependency unwrapping by iteratively removing mocks to locate whether UI, API or DB breaks, and shows the harness works in practice.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:11Top five reasons tests break
  3. 3:59Why tests are fragile
  4. 4:22SOLID principles for tests
  5. 6:47Single responsibility in tests
  6. 7:49Open closed and interface principles
  7. 9:56Dependency inversion in testing
  8. 11:41Create activate assert pattern
  9. 13:51Standardized testing approach
  10. 16:16Reusable test cases
  11. 18:23Climbing the testing pyramid
  12. 20:28Pipeline testing structure
  13. 21:31Benefits of data driven testing
  14. 22:37Consequences of abstractions
  15. 24:42Call to action and conclusion
  16. 25:45Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.