tdd for testers

16
Gil Zilberfeld TDD for Testers

Upload: gil-zilberfeld

Post on 28-Jul-2015

262 views

Category:

Software


0 download

TRANSCRIPT

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!