tdd for the rest of us

9
@gil_zilber feld Introduction to TDD Gil Zilberfeld 23 - Jun-2014 Introduction to TDD TDD for the rest of us

Upload: gil-zilberfeld

Post on 28-Aug-2014

566 views

Category:

Software


3 download

DESCRIPTION

Introduction to Test Driven Development for testers

TRANSCRIPT

Page 1: TDD for the rest of us

@gil_zilberfeld

Introduction to TDD

Gil Zilberfeld23-Jun-2014

Introduction to TDD

TDD for the rest of us

Page 2: TDD for the rest of us

@gil_zilberfeld

Who is this guy?A few things I care about…

•TDD•Unit testing

•Testing•Design•Coding

•Agile product development

Page 3: TDD for the rest of us

@gil_zilberfeld

Test Driven Development

Page 4: TDD for the rest of us

@gil_zilberfeld

Demo

Page 5: TDD for the rest of us

@gil_zilberfeld

Benefits

• Same unit testing tools • Better coverage• Less debugging• Better design

Think before your code!

Page 6: TDD for the rest of us

@gil_zilberfeld

Issues• Requires discipline• Works better for greenfield projects• Not for everyone

Page 7: TDD for the rest of us

@gil_zilberfeld

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!

Page 8: TDD for the rest of us

@gil_zilberfeld

Summary

• TDD is great for all kind of projects• It’s a great collaboration tool• Discipline and persistence pays off• … and you get an automated regression test

So what’s not to like?

Page 9: TDD for the rest of us

@gil_zilberfeld

Site and blog: www.gilzilberfeld.com

Email: [email protected]

Twitter: @gil_zilberfeld

Questions?