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

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

7d1513d777e2134ef8113e60b16ebf88?s=128

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
  2. Audrey Troutt @auditty What is TDD? Test-Driven Development

  3. Audrey Troutt @auditty

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

  5. Materials needed: Source code Unit testing framework Understanding of requirements

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

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

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

  9. • • • • • • • • • •

    … Audrey Troutt @auditty Read more: http://bit.ly/1Bs2h70
  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
  11. Audrey Troutt @auditty Read more:

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