~/talk

Writing a Test Framework from Scratch

Talkat Ruby on Ales 2016 · 2016-03-31..04-01· [testing, ruby]
slides:none on file

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

  1. 0:00Start
  2. 5:24Assertion
  3. 8:11Checking for Equality
  4. 21:30What Happens When a Test Fails
  5. 22:51Separate the Exception Handling from the Test Run
  6. 30:54Add More Enhancements
  7. 37:15Next Feature To Implement in a Micro Test
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.