~/talk

Size Doesn't Matter

Talkat Cascadia Ruby 2011 · 2011-07-29..07-30· [developer-experience]
slides:none on file

A compact replacement for test unit claims real results: a runner plus unit, specs, mocks, pride and bench shipped as a tiny gem originally ~90 lines that grows into three frameworks, with mock code around 50 lines and a pride IO pipeline at ~35 lines. Tests run randomized by default, add richer assertions and unified diffs, and bench does curve‑fitting for performance regression. Micro frameworks execute far fewer lines and start far faster than heavyweight alternatives, and the sizes measurably reduce iteration time.

AI-written summary · about

  1. 0:00Start
  2. 4:21What is Minitest?
  3. 5:126 Parts of Minitest
  4. 5:33Every method starting with "test" is run in a new context.
  5. 6:12Test randomization prevents order dependencies.
  6. 6:36Verbose mode prints test times in a sortable format
  7. 7:03Test summary provides useful statistics
  8. 7:22Test Example
  9. 7:48Positive Assertions
  10. 8:18assert_equal diffs
  11. 9:09Negative Assertions
  12. 11:00refute_silent
  13. 12:46Specs Transform
  14. 14:36mock high
  15. 14:54mock smart
  16. 15:17"def is my stub framework" Phil Hagelberg
  17. 16:58Simple 10 Pipelining
  18. 17:17Implementation
  19. 18:29minitest/unit example
  20. 19:26minitest/spec example
  21. 19:51Curve Fitting
  22. 21:03minitest/spec methods
  23. 22:05Other Examples
  24. 24:56bacon: n.should be. close m, delta
  25. 26:44test/unit v1
  26. 28:09Simplified test/unit
  27. 28:40rspec: n.should be_close(m, d)
  28. 30:13Lines of Code Executed (trace = 1 test)
  29. 31:46Flog (Complexity) Score
~/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.