~/talk

Integration Tests Are Bogus

Talkat RubyDay 2016 · 2016-11-25..11-26· [testing, software-architecture]
slides:none on file

Argues that most integration tests are unnecessary if unit tests use verified doubles and lightweight contract checks, and demos this with a weather/plane and navigator example. Shows using bogus or RSpec 3 verified doubles to enforce that stubs match real method names and arity so tests fail fast instead of lying, and sketches experimental contract tests to ensure collaborators actually handle the calls. Claims faster, more reliable feedback and fewer flaky end-to-end tests.

AI-written summary · about

  1. 0:00Introduction and disclaimer
  2. 1:41Why integration tests matter
  3. 6:20End-to-end vs unit tests
  4. 8:06Mocks and stubs explained
  5. 13:48Testing public API only
  6. 15:58Risks of mocks and stubs
  7. 18:28Why integration tests fail
  8. 20:53Live coding demo begins
  9. 23:25Fixing slow unit tests
  10. 25:11Verified doubles with Bogus
  11. 29:27Verified doubles in RSpec
  12. 30:31Outside-in development
  13. 31:36Mocking external services
  14. 34:21Fake roles and contracts
  15. 36:27Contract testing explained
  16. 38:54Testing real-world scenarios
  17. 40:18Recap and key takeaways
~/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.