~/talk

How I Learned to Stop Worrying and Love Unit Testing

Talkat RubyConf 2017 · 2017-11-15..11-17· [ruby, testing]
links:none on file
slides:none on file

Argues that fast unit tests drive safer refactors and cleaner design, showing RSpec expect examples, advising one test per branch and an upfront failing test for bugs, and recommending CI so a green build turning red pins the offending commit. Suggests using Timecop for time issues and stubbing external calls with VCR or webmock, measuring progress with Coveralls and aiming to raise coverage incrementally (try +5% goals).

AI-written summary · about

  1. 0:00Intro
  2. 0:11HOW I LEARNED TO STOP WORRYING AND LOVE UNIT TESTING
  3. 3:18To all viewers but yourself, what matters is the product: the finished artwork. To you, and you alone, what matters is the process
  4. 8:09ENCOURAGING GOOD PRACTICES Tests are the canary in the coal mine; when the design is bad, testing is hard.
  5. 11:07You make good work by (among other things) making lots of work that isn't very good, and gradually weeding out the parts that aren't good
  6. 16:11Whether other methods are called . Whether a job is enqueued • If something is truthy/falsey • If an exception is thrown
  7. 23:08TIME Developer time • Computational time • The passage of time
~/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.