Introduction to TDD

1,090 views
1,041 views

Published on

Introduction to Test Driven Development

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,090
On SlideShare
0
From Embeds
0
Number of Embeds
556
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Introduction to TDD

  1. 1. Test Driven DevelopmentGil ZilberfeldTypemock, Product Manager3-Sep-2012 @gil_zilberfel
  2. 2. About me…• Agile practices• Automated testing and TDD• Product management• http://www.gilzilberfeld.com• @gil_zilberfeld• gil.zilberfeld@gmail.com @gil_zilberfel
  3. 3. Test Driven Development @gil_zilberfel
  4. 4. Example @gil_zilberfel
  5. 5. eXtreme Programming“Code the unit test first.”“When you create your tests first, before thecode, you will find it much easier and fasterto create your code.” http://www.extremeprogramming.org @gil_zilberfel
  6. 6. Pros• Same tools • Better design• Better coverage • Know when• Quick feedback you’re done• Less debugging • Rhythm Think before your code! @gil_zilberfel
  7. 7. Cons• Requires discipline• Easier in greenfield projects• Better in pairs and groups• Not for everyone @gil_zilberfel
  8. 8. Principles• Plan ahead • Smallest amount of code to pass the test • Just to pass the• Pick good names test! • Focus on the• Small steps current test • Empty tests for later Discipline, discipline, discipline! @gil_zilberfel
  9. 9. More TDD @gil_zilberfel
  10. 10. TDD in Legacy Code• Start a bug fix with a test• Start a feature with a test Not just for greenfield projects! @gil_zilberfel
  11. 11. Alphabet Soup• TDD = Test-driven development/design• UT = Unit testing• ATDD = Acceptance test-driven development• BDD = Behavior driven development @gil_zilberfel
  12. 12. Resources• codekata.pragprog.com• jamesshore.com/Blog/ Lets-Play• www.typemock.com @gil_zilberfel
  13. 13. Summary• TDD works for all kind of projects• It’s all in your head• Discipline and persistence pays off• Start today @gil_zilberfel
  14. 14. Questions?(Maybe later?) http://www.gilzilberfeld.com @gil_zilberfeld gil.zilberfeld@gmail.com @gil_zilberfel

×