Writing a Test Framework from Scratch
summary
Builds a test framework by coding assertions first then adding equality and float checks and test isolation until a runnable suite emerges. Implements a class/method organization, a reporter that collects failures, randomizes run order to catch inter-test coupling, and outputs dots and a summarized failure list. The final microtest is about 70 lines of Ruby, factors responsibilities cleanly, and runs roughly twice as fast as minitest.
AI-written summary · about
chapters (7)
- 0:00Start
- 5:24Assertion
- 8:11Checking for Equality
- 21:30What Happens When a Test Fails
- 22:51Separate the Exception Handling from the Test Run
- 30:54Add More Enhancements
- 37:15Next Feature To Implement in a Micro Test
related talks
32mWriting a Test Framework from Scratch
32mWriting a Test Framework From Scratch
32mMiniTest: Write Awesome Tests
39mMiniTest: Refactoring Test Unit and RSpec back to version 0.0.1
40mA Guided Read of Minitest
34mThe history of testing framework in Ruby
33mRuby on Rails on Minitest
36mIt's not your test framework, it's you
