~/talk

Too Many Mocks Kill the Test: What Hexagonal Architecture Changed

TalkinFrenchat Forum PHP 2020 · 2020-10-22..10-23· [testing, software-architecture]
links:none on file
slides:none on file

Explains how overusing mocks harms automated tests and how adopting a hexagonal (ports and adapters) architecture reduces that problem. Describes the testing issues caused by tight coupling and excessive mocking, and shows how hexagonal architecture separates core domain logic from external dependencies (databases, HTTP, etc.) so tests can be more focused and less mock-heavy.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Locking Tests vs. TDD
  3. 5:32Misconception #1
  4. 7:11Misconception #3
  5. 14:48Misconception #4
  6. 18:13Infrastructure: Integration Testing
  7. 19:03Misconception #5
  8. 20:24Suggestion
  9. 25:19Misconception #6
  10. 25:471st Test: Well-Defined Boundary
  11. 35:00Misconception #7
  12. 39:46Your Turn!
~/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.