~/talk

Testing legacy code when you dislike tests (and legacy code)

Talkat RailsConf 2022 · 2022-05-17..05-19· [testing, ruby-on-rails]
speakerdeck:maeve
slides:none on file

Defines legacy code as code deployed to production without tests and argues testing must target observable application behavior not implementation details. Shows a concrete migration: replacing Resque/Redis with Kafka by running both systems in parallel behind a feature flag, verifying payloads at the subsystem seam. Recommends integration tests for high value checks, functional/unit tests for edge cases, pull record counts from the data layer, and use the seam model and Capybara DSL to keep tests resilient.

AI-written summary · about

  1. 0:00Start
  2. 7:17Risk of the unknown
  3. 7:42Cost of change
  4. 10:13Maintaining legacy code
  5. 10:37Optimize inputs
  6. 11:23Testing legacy code
  7. 24:24Integration test value
  8. 31:34Unit test value
~/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.