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

TDD in Real World

TDD in Real World

Nowadays TDD is gaining more and more popularity, although there is still a huge number of projects and teams not practicing it. In this presentation we'll see what benefits TDD brings, when we should use it and when it is not highly needed. We'll also find out how to setup and automate the whole process within iOS project to make the most of it.

Oleksandr Voronov

September 04, 2016
Tweet

More Decks by Oleksandr Voronov

Other Decks in Programming

Transcript

  1. @aleks_voronov CLEANER INTERFACES ‣ TESTS ARE FIRST TO USE CODE

    ‣ PLAY IN PURE SANDBOX ENVIRONMENT ‣ UNBIASED DESIGNING
  2. @aleks_voronov CLEANER INTERFACES ‣ TESTS ARE FIRST TO USE CODE

    ‣ PLAY IN PURE SANDBOX ENVIRONMENT ‣ UNBIASED DESIGNING ‣ POORLY DESIGNED CODE WITH TESTS IS STILL BETTER THAN
 POORLY DESIGNED CODE WITHOUT TESTS
  3. @aleks_voronov SPIKE SOLUTION ‣ ISOLATE ‣ SHORTEN FEEDBACK LOOP: REPL,

    PLAYGROUND, FIDDLE ‣ SETUP SANDBOX: LIBRARIES, STUBBED RESPONSES
  4. @aleks_voronov INTRODUCING TDD TO YOUR TEAM ‣ JUST START WRITING

    TESTS ‣ TEST SIMPLEST THINGS ‣ GET USED WITH TOOLS
  5. @aleks_voronov INTRODUCING TDD TO YOUR TEAM ‣ JUST START WRITING

    TESTS ‣ TEST SIMPLEST THINGS ‣ GET USED WITH TOOLS ‣ LET OTHERS SEE WHAT YOU DO
  6. @aleks_voronov INTRODUCING TDD TO YOUR TEAM ‣ JUST START WRITING

    TESTS ‣ TEST SIMPLEST THINGS ‣ GET USED WITH TOOLS ‣ LET OTHERS SEE WHAT YOU DO ‣ INTRODUCE BOY SCOUT RULE
  7. @aleks_voronov INTRODUCING TDD TO YOUR TEAM ‣ JUST START WRITING

    TESTS ‣ TEST SIMPLEST THINGS ‣ GET USED WITH TOOLS ‣ LET OTHERS SEE WHAT YOU DO ‣ INTRODUCE BOY SCOUT RULE ‣ PAIR PROGRAMMING
  8. @aleks_voronov INTRODUCING TDD TO LEGACY PROJECT ‣ REMEMBER BOY SCOUT

    RULE? ‣ START WITH CRITICAL FEATURES ‣ FIND LOWEST POINT YOU CAN TEST
  9. @aleks_voronov INTRODUCING TDD TO LEGACY PROJECT ‣ REMEMBER BOY SCOUT

    RULE? ‣ START WITH CRITICAL FEATURES ‣ FIND LOWEST POINT YOU CAN TEST ‣ ADD TESTS, THEN REFACTOR
  10. @aleks_voronov INTRODUCING TDD TO LEGACY PROJECT ‣ REMEMBER BOY SCOUT

    RULE? ‣ START WITH CRITICAL FEATURES ‣ FIND LOWEST POINT YOU CAN TEST ‣ ADD TESTS, THEN REFACTOR ‣ STEP BY STEP
  11. @aleks_voronov INTRODUCING TDD TO LEGACY PROJECT ‣ REMEMBER BOY SCOUT

    RULE? ‣ START WITH CRITICAL FEATURES ‣ FIND LOWEST POINT YOU CAN TEST ‣ ADD TESTS, THEN REFACTOR ‣ STEP BY STEP ‣ YES, IT TAKES TIME