Ruby on Rails on Minitest
summary
Minitest is a tiny, pragmatic test framework (from ~90 lines to ~1,600) that Rails adopts: Rails 4.0 → minitest 4, Rails 4.1 → minitest 5, and Rails 4.2 → randomized test order. Randomization exposes order-dependent failures; a bisect tool (minitest-bisect) repeatedly reruns the suite to reduce the failure to the minimal two-test order that reproduces it. Claim: minitest runs faster and uses less memory than RSpec; thousands of gems (4,000+) declare dependencies and many report big runtime wins.
AI-written summary · about
chapters (26)
- 0:00Introduction
- 0:49What is Minitest
- 3:49Negative assertions
- 6:31Test spec
- 7:48MainTestSpec
- 9:01Why Minitest
- 9:22Less is More
- 12:08Rails 40 and Minitest
- 12:56Rails 41 and Minitest
- 13:42Rails 42 and Minitest
- 14:07Impact on people
- 18:22Specstyle vs Minitest
- 19:13Randomization
- 21:08My suggestion
- 21:57My battles
- 22:47Functional differences
- 23:52Myron Marston
- 25:02Minitest vs RSpec
- 27:11Subclassing
- 28:05RSpec
- 28:52Magic
- 29:23Cognitive Cost
- 30:15Performance Cost
- 31:18Refactoring
- 31:32Speed
- 32:08Summary








