TDD for Testers
-
Upload
gil-zilberfeld -
Category
Software
-
view
262 -
download
0
Transcript of TDD for Testers
Who Am I
Agile helperSoftware improverAuthor of “Everyday Unit Testing”
www.gilzilberfeld.comwww.everydayunittesting.com@gil_zilberfeld
Benefits
• Same unit testing tools
• Better coverage
• Less debugging
• Better design
Think before your code!
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!
TDD in Legacy Code
• Start a bug fix with a test
• Start a feature with a test
Not just for greenfield projects!
Summary
• TDD is great for all kind of projects
• It’s a valuable tool for developers
• Discipline and persistence pays off
@gil_zilberfeldhttp://www.gilzilberfeld.comhttp://www.everydayunittesting.com
May The Force Be With You!