~/talk

A Big Look at MiniTest

Talkat RubyConf AU 2014 · 2014-02-19..02-21· [testing, ruby]
slides:none on file

MiniTest ships with Ruby 1.9+ and is tiny (about eight files with three real files doing the work), yet provides both TestUnit and RSpec‑like spec syntaxes, fast execution and pure‑Ruby runners that work without extra gems. It shows concrete APIs: MiniTest::Mock and stub blocks, custom assertions via infect_an_assertion, built‑in must_ expectations, and Rails integration through minitest‑spec‑rails (some gems need updates for Rails 4.1). Benchmarks show noticeably faster runs than RSpec.

AI-written summary · about

  1. 0:00Start
  2. 9:13The Basics
  3. 9:24Mini Test::Spec
  4. 10:50Pending
  5. 11:20Expectations
  6. 13:47No subject
  7. 14:01Assertions
  8. 14:43Mocking/Stubbing
  9. 16:05Struct, OpenStruct
  10. 17:20Mocha, RR, FlexMock
  11. 20:42gem "minitest-spec-rails"
  12. 24:37Wrapping Up
  13. 24:5095% of RSpec
  14. 25:37Ships with Ruby!
~/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.