16
Gil Zilberfeld TDD for Testers

TDD for Testers

Embed Size (px)

Citation preview

Gil Zilberfeld

TDD for Testers

Who Am I

Agile helperSoftware improverAuthor of “Everyday Unit Testing”

www.gilzilberfeld.comwww.everydayunittesting.com@gil_zilberfeld

Test Driven Development

Benefits

• Same unit testing tools

• Better coverage

• Less debugging

• Better design

Think before your code!

Issues

• Requires discipline

• Works better for greenfield projects

• Not for everyone

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!

Our Death Star

Weapons Defense

Navigation Environment

Weapons

Defense

Navigation

Environment

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!