~/talk

Going on a Testing Anti-Pattern Safari

Talkat MountainWest RubyConf 2013 · 2013-04-03..04-05· [testing]
slides:none on file

Catalog of concrete anti patterns and fixes plus measurable wins: tests must be trustworthy and simple; stop testing ActiveRecord (example: asserting find on a created record) and delete useless assertions like assert_nothing_raised; stub time and use relative dates to fix flaky time sensitive tests; randomize order (RSpec --order rand, minitest default) to expose order dependencies; mock external APIs (webmock or a stub Requestor) and cut a 0.25s call to <0.001s; use CI and refuse red builds.

AI-written summary · about

  1. 0:00PLATINUM SPONSOR
  2. 2:34Overview
  3. 4:02Not Running Tests
  4. 5:28Testing OPC
  5. 9:17Time Sensitive
  6. 12:19Order Dependent
  7. 14:36Default Run Orders
  8. 14:55How To Randomize
  9. 16:04Tests That Can't Fail
  10. 18:11Require External Resources
  11. 24:45Complicated Setup
  12. 25:49Messy Tests
  13. 26:32Test Refactoring
  14. 27:36Slow tests
~/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.