Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TDD fundamentals

TDD fundamentals

Introductory talk to TDD, directed for an audience that knew some Ruby but was not familiar with TDD. The talk was followed by short hands-on exercise.

Presented at: Bogotá Ruby meetup

Sebastian Sogamoso

May 23, 2013
Tweet

More Decks by Sebastian Sogamoso

Other Decks in Programming

Transcript

  1. “If it's worth building, it's worth testing.”
 
 “If it's

    not worth testing, why are you wasting your time working on it?”
  2. Three Rules of TDD 1. You are not allowed to

    write any production code unless it is to make a failing unit test pass.
  3. Three Rules of TDD ! 2. You are not allowed

    to write any more of a unit test than is sufficient to fail; and compilation failures are failures.
  4. Three Rules of TDD ! 3. You are not allowed

    to write any more production code than is sufficient to pass the one failing unit test.