~/talk

Outside-In Testing

Talkat Wicked Good Ruby 2013 · 2013-10-12..10-13· [ruby, testing]
links:none on file
slides:none on file

Argues that writing acceptance tests from the outside in yields the minimum code to ship features, resilient refactors, and high coverage; demos a user registration implemented with Capybara + capybara email gem and MiniTest, where a nine-line acceptance test drives ~21 lines of implementation and yields 100% coverage on four lines; shows that acceptance tests survive a Rails-to-Backbone rewrite, recommends form builders/fixtures to fill edge-case cracks, and warns against heavy unit tests that lock in implementation.

AI-written summary · about

  1. 0:00Start
  2. 2:25I write tests from a user's perspective
  3. 6:58Replace "Unit" with your entire application
  4. 27:14User Registration
  5. 28:03Abstract Error Handling Model, Controller, Form Object, Form Builder
  6. 29:53Unit Test the lower branches
  7. 30:12Trading Flexibility For efficiency
  8. 34:52Questions?
~/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.