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

Jorge Ortiz: TDD for the Masses

Realm
July 08, 2016

Jorge Ortiz: TDD for the Masses

Realm

July 08, 2016
Tweet

More Decks by Realm

Other Decks in Technology

Transcript

  1. #TDD4Masses Agenda ̣ TDD ̣ Unit testing a Table View

    Controller from scratch ̣ Get it to run
  2. #TDD4Masses TDD Dance ̣ Red ̣ Green ̣ Refactor Write

    test ❌ Write simplest code to pass test ✅ Improve code Choose next functionality Loop until done
  3. #TDD4Masses Simplest Code ̣ Hard coded ̣ Closer to the

    beginning of scope ̣ Less indented ̣ Shorter Credit Ray Osherove
  4. #TDD4Masses Recap ̣ Red, Green, and Refactor ̣ Add min

    amount of code to pass ̣ TDD is not only possible, but useful&cool! ̣ Great coverage ̣ Views can be tested ̣ Good architecture helps