MiniTest: Write Awesome Tests
summary
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
chapters (13)
- 0:00Intro
- 1:04Hacker News Poll
- 2:23Overhead
- 4:40Reliability
- 10:18MiniTest
- 12:00Unit Tests
- 12:20Spec Style Tests
- 13:05Mock Tests
- 13:43Running Tests
- 15:08Skipping Tests
- 15:22Verbosity
- 15:34Benchmarking
- 15:58Code








