A Big Look at MiniTest
summary
MiniTest ships with Ruby 1.9+ and is tiny (about eight files with three real files doing the work), yet provides both TestUnit and RSpec‑like spec syntaxes, fast execution and pure‑Ruby runners that work without extra gems. It shows concrete APIs: MiniTest::Mock and stub blocks, custom assertions via infect_an_assertion, built‑in must_ expectations, and Rails integration through minitest‑spec‑rails (some gems need updates for Rails 4.1). Benchmarks show noticeably faster runs than RSpec.
AI-written summary · about
chapters (14)
- 0:00Start
- 9:13The Basics
- 9:24Mini Test::Spec
- 10:50Pending
- 11:20Expectations
- 13:47No subject
- 14:01Assertions
- 14:43Mocking/Stubbing
- 16:05Struct, OpenStruct
- 17:20Mocha, RR, FlexMock
- 20:42gem "minitest-spec-rails"
- 24:37Wrapping Up
- 24:5095% of RSpec
- 25:37Ships with Ruby!








