~/talk

MiniTest: Refactoring Test Unit and RSpec back to version 0.0.1

Talkat RailsConf 2012 · 2012-04-23..04-25· [testing, ruby]
links:none on file
slides:none on file

MiniTest presents a tiny, readable test framework that ships with Ruby 1.9 and Rails 4 and serves as a drop-in replacement for Test::Unit while reproducing RSpec-style expectations by using infect_an_assertion to map assertions to spec-like methods. The mock library is about 100 lines and stubbing relies on per-object singleton methods; tests run in random order by default, minitest-pride colorizes output, and one refactor example deletes 72 lines and replaces them with six.

AI-written summary · about

  1. 0:00Introduction to minitest
  2. 1:11The philosophy of simplicity
  3. 3:23Why choose minitest?
  4. 6:05Minitest as a drop-in replacement
  5. 7:26Minitest spec style
  6. 10:03Behind the scenes of minitest
  7. 11:46The importance of testing
  8. 14:10Getting started with minitest
  9. 16:12Custom matchers and expectations
  10. 21:43Shared behaviors and extensions
  11. 24:22Mocking in minitest
  12. 26:06Stubbing and best practices
  13. 28:57Customizing output and diffs
  14. 30:33Advanced tips and source code
  15. 32:46Performance and design
  16. 34:11Conclusion and Q&A
~/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.