$30 off During Our Annual Pro Sale. View Details »

Add TDD to your Toolbox (Agile Tour 2014 Philadelphia)

Add TDD to your Toolbox (Agile Tour 2014 Philadelphia)

Introduction to TDD, test-driven development. Not included is a live coding demonstration of TDD in practice. Look at the link on the last slide for videos of other people doing TDD.

Presented at the 2014 Agile Tour in Philadelphia, PA

Audrey Troutt

October 07, 2014
Tweet

More Decks by Audrey Troutt

Other Decks in Programming

Transcript

  1. Add TDD to your toolbox
    an introduction for beginners
    Audrey Troutt @auditty

    View Slide

  2. Audrey Troutt @auditty
    What is TDD? Test-Driven Development

    View Slide

  3. Audrey Troutt @auditty

    View Slide

  4. Read more: http://bit.ly/1foLebI
    Audrey Troutt @auditty

    View Slide

  5. Materials needed:
    Source code
    Unit testing framework
    Understanding of requirements
    Audrey Troutt @auditty

    View Slide

  6. Simple Case: There’s a bug
    Audrey Troutt @auditty

    View Slide

  7. Use Case: From the Ground Up
    Audrey Troutt @auditty

    View Slide

  8. Audrey Troutt @auditty
    Read more: http://bit.ly/1Bs2h70

    View Slide










  9. ● …
    Audrey Troutt @auditty
    Read more: http://bit.ly/1Bs2h70

    View Slide

  10. Pros:
    ● More tests
    ● More testable code
    ● Discover missing
    requirements sooner
    ● Uncover novel designs
    ● Increased quality
    ● Refactor/add on with
    confidence
    ● Doesn’t generally take
    more time
    ● May start conversations
    Cons:
    ● First time setup of test
    framework takes extra
    time
    ● Not always practical (if
    requirements are not
    well defined)
    ● Makes changing object
    model harder
    ● May start conversations
    Audrey Troutt @auditty

    View Slide

  11. Audrey Troutt @auditty
    Read more:

    View Slide

  12. Practice
    http://codekata.com/
    Learn from others
    http://katas.softwarecraftsmanship.org/
    Audrey Troutt @auditty

    View Slide