Your SlideShare is downloading. ×
  • Like
Introduction to TDD
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Introduction to TDD

  • 838 views
Published

Introduction to Test Driven Development

Introduction to Test Driven Development

Published in Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
838
On SlideShare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
4
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Test Driven DevelopmentGil ZilberfeldTypemock, Product Manager3-Sep-2012 @gil_zilberfel
  • 2. About me…• Agile practices• Automated testing and TDD• Product management• http://www.gilzilberfeld.com• @gil_zilberfeld• gil.zilberfeld@gmail.com @gil_zilberfel
  • 3. Test Driven Development @gil_zilberfel
  • 4. Example @gil_zilberfel
  • 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. Pros• Same tools • Better design• Better coverage • Know when• Quick feedback you’re done• Less debugging • Rhythm Think before your code! @gil_zilberfel
  • 7. Cons• Requires discipline• Easier in greenfield projects• Better in pairs and groups• Not for everyone @gil_zilberfel
  • 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. More TDD @gil_zilberfel
  • 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. Alphabet Soup• TDD = Test-driven development/design• UT = Unit testing• ATDD = Acceptance test-driven development• BDD = Behavior driven development @gil_zilberfel
  • 12. Resources• codekata.pragprog.com• jamesshore.com/Blog/ Lets-Play• www.typemock.com @gil_zilberfel
  • 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. Questions?(Maybe later?) http://www.gilzilberfeld.com @gil_zilberfeld gil.zilberfeld@gmail.com @gil_zilberfel