~/talk

Testing HTTP APIs in Ruby

Talkat RailsConf 2013 · 2013-04-29..05-02· [testing, ruby]
links:none on file
slides:none on file

Compares four concrete testing approaches and gives measurable tradeoffs: isolated unit tests with WebMock lead to blind spots, sandboxing against a real server catches protocol drift but turns a 1.5 minute test suite into ~15 minutes and sometimes into 1.5 hours with a partner, and shipping a fast in-memory fake server or a shared rack mapper (using Faraday / rack-client and Sinatra routes) yields quick tests and validated mocks by running both fake and real modes so the fake actually matches the live API.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Problem Statement
  3. 1:42Context
  4. 4:39Isolation Approach
  5. 12:33Figma Approach
  6. 14:14InMemory Representation
  7. 19:07Real vs Fake Mode
  8. 23:43Conclusion
~/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.