~/talk

MiniTest: Write Awesome Tests

Talkat MountainWest RubyConf 2012 · 2012-03-15..03-16· [testing, ruby]
slides:none on file

Argues that MiniTest cuts testing overhead by being tiny and readable and ships with Ruby 1.9 as a drop‑in for test/unit, so no big install. Demonstrates unit, spec and mock styles, a Sinatra/Rack example with a ~100–200 line spec shim and random test ordering with seed to surface order dependencies. Shows a fetcher test that replaces real HTTP with a local stub and serialize URL cache to disk so tests run fast and offline.

AI-written summary · about

  1. 0:00Intro
  2. 1:04Hacker News Poll
  3. 2:23Overhead
  4. 4:40Reliability
  5. 10:18MiniTest
  6. 12:00Unit Tests
  7. 12:20Spec Style Tests
  8. 13:05Mock Tests
  9. 13:43Running Tests
  10. 15:08Skipping Tests
  11. 15:22Verbosity
  12. 15:34Benchmarking
  13. 15:58Code
~/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.