Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

TDD for Testers

744 views

Published on

Explaining why TDD is important from a testing perspective.

Published in: Software
  • Be the first to comment

TDD for Testers

  1. 1. Gil Zilberfeld TDD for Testers
  2. 2. Who Am I Agile helper Software improver Author of “Everyday Unit Testing” www.gilzilberfeld.com www.everydayunittesting.com @gil_zilberfeld
  3. 3. Test Driven Development
  4. 4. Benefits • Same unit testing tools • Better coverage • Less debugging • Better design Think before your code!
  5. 5. Issues • Requires discipline • Works better for greenfield projects • Not for everyone
  6. 6. Principles • Plan ahead • Small steps • Smallest amount of code to pass the test • JUST to pass the test • Focus on the current test • Ask questions Discipline, discipline, discipline!
  7. 7. TDD in Legacy Code • Start a bug fix with a test • Start a feature with a test Not just for greenfield projects!
  8. 8. Our Death Star Weapons Defense Navigation Environment
  9. 9. Weapons
  10. 10. Defense
  11. 11. Navigation
  12. 12. Environment
  13. 13. Summary • TDD is great for all kind of projects • It’s a valuable tool for developers • Discipline and persistence pays off
  14. 14. @gil_zilberfeld http://www.gilzilberfeld.com http://www.everydayunittesting.com May The Force Be With You!

×