~/talk

Limits of testing

Talkat JDD 2018 · 2018-10-08..10-09· [testing, software-architecture]
links:none on file
slides:none on file

Unit testing becomes pointless when design hides logic or forces unrealistic setup: a God controller that calculates totals forces JSON construction and custom deserializers; inline discount strategies create high cyclomatic complexity and a hidden dependency on system time; tests break without a controllable Clock. Fixes shown: move calculation into the domain model and use a DiscountPolicy with injectable Clock.fixed for deterministic tests, and treat glue code with integration tests (embedded DB or Docker) instead of brittle mocked unit tests.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12What are test limits
  3. 4:11Design and testability
  4. 5:16God controller example
  5. 17:53Strategy pattern refactor
  6. 28:44Layered architecture issues
  7. 35:57Glue code testing
  8. 41:15Design limits and tools
~/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.