~/talk

INTEGRATION TESTS ARE BOGUS

Talkat wroc_love.rb 2014 · 2014-04-17..04-20· [ruby, testing]
slides:none on file

Argues that many slow brittle integration tests become unnecessary by using Bogus to make unit doubles realistic: verified doubles (coming in RSpec 3) fail when a stubbed method was renamed or has the wrong arity, spies/assertions check actual calls, and contract tests collect all stubs/mocks and verify the real class implements those interactions. Demonstrates replacing fragile end-to-end checks with verified doubles and Bogus contract checks, notes Minitest and RSpec support and forces clearer dependency injection so hidden mismatches surface immediately.

AI-written summary · about

  1. 0:00Intro
  2. 0:54What are integration tests
  3. 3:43Unit tests
  4. 4:41Query separation
  5. 6:34Basic correctness
  6. 7:32Test doubles
  7. 8:25The problem with doubles
  8. 9:03Why we have integration tests
  9. 9:52Example
  10. 13:17Verified Doubles
  11. 21:40Experiments
  12. 26:36Vehicle tests
  13. 28:13Recap
  14. 28:48Prelaunch
  15. 29:13mintest min spec
  16. 29:27Integration Test RS
  17. 29:48Boundaries
~/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.