~/talk

Fake Your Test Away: How To Abuse Your Test Doubles

Talkat RubyConf 2021 · 2021-11-08..11-10· [testing, developer-experience]

Claims that overused test doubles make suites brittle and unhelpful and shows concrete fixes in Ruby: a few real examples with ActiveRecord callbacks, background jobs and even an external search client lead to two failure modes, integration tests with random doubles and helicopter unit tests. Remedies: apply the principle of least knowledge, separate decisions and delegations, introduce a small restaurant_repo and dependency injection, and the resulting tests are simpler, fewer, and actually catch regressions.

AI-written summary · about

  1. 0:00Start
  2. 2:11Let's talk about testing
  3. 4:42Testing pyramid, reality edition
  4. 11:13The dependency graph
  5. 22:03Testing pyramid with decision and delegation
~/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.