A Big Look at MiniTest
summary
Rails 4 plus Ruby 1.9 means MiniTest ships with Ruby 1.9+ and replaces TestUnit, offering both spec and unit syntaxes, custom assertions (inject via infect_assertion), and tiny core (about three files) instead of many gems. Mocking is minimal so examples use OpenStruct/Struct or mocha, minitest-rails adds controller helpers and rake tasks, guard runs tests on save, capybara integrates for feature tests, and the m gem runs single tests or files by line.
AI-written summary · about
chapters (22)
- 0:00Intro
- 0:45Stand Up
- 1:49Metacasts
- 2:34The Green Dot
- 3:56The Ruby Toolbox
- 5:36MiniTest Overview
- 7:11Standard Library
- 8:12The Basics
- 8:35MiniTest Spec
- 11:11Pending Tests
- 11:57Expectations
- 12:39MiniTest Unit
- 13:50Scribe Blocks
- 14:14Assertions
- 14:56Mocking
- 18:01Mocha
- 18:17Custom assertions
- 20:58Rails
- 28:53RSpec
- 29:03Conclusion
- 29:14Speed
- 30:14Ruby
related talks
32mA Big Look at MiniTest
39mMiniTest: Refactoring Test Unit and RSpec back to version 0.0.1
32mMiniTest: Write Awesome Tests
33mRuby on Rails on Minitest
40mA Guided Read of Minitest
38mMinitest 6: test feistier!
34mThe history of testing framework in Ruby
29mMinitest with Capybara: Tips, Tricks and Lessons Learned
