16
@gil_zilberfel ROMANI AN TESTI NG CONFER ENCE 201 6 TDD for the rest of us Gil Zilberfeld

TDD for the rest of us

Embed Size (px)

Citation preview

Page 1: TDD for the rest of us

@gil_zilberfeld

ROMANIANTESTINGCONFERENCE2016

TDD for the rest of us

Gil Zilberfeld

Page 2: TDD for the rest of us

@gil_zilberfeld

Hello!

I AM GIL ZILBERFELD

www.gilzilberfeld.comwww.everydayunittesting.com

@gil_zilberfeld

Page 3: TDD for the rest of us

@gil_zilberfeld

Test Driven Development

Or is it Test Driven Design?

Page 4: TDD for the rest of us

@gil_zilberfeld

The TDD Cycle

Page 5: TDD for the rest of us

@gil_zilberfeld

Let’s build a lightsaber!

Page 6: TDD for the rest of us

@gil_zilberfeld

What are the requirements?

Page 7: TDD for the rest of us

@gil_zilberfeld

Let’s build it!

Page 8: TDD for the rest of us

@gil_zilberfeld

Let’s build a better lightsaber!

Page 9: TDD for the rest of us

@gil_zilberfeld

What are the new requirements?

Page 10: TDD for the rest of us

@gil_zilberfeld

BENEFITSSame tools Better coverageLess debuggingBetter designThink before your code!

You can also split your content

ISSUESRequires disciplineWorks better for greenfield projectsTakes time to get to great results

The light side vs the dark side

Page 11: TDD for the rest of us

@gil_zilberfeld

Plan aheadDefine boundariesSmall stepsSmallest amount of code to pass the testJUST to pass the testFocus on the current testAsk questionsDiscipline, discipline, discipline!

You can also split your contentYoda says…

Page 12: TDD for the rest of us

@gil_zilberfeld

Not every project is lightsaber size

Page 13: TDD for the rest of us

@gil_zilberfeld

COMPONENTSNavigationShieldsEnvironmentWeaponsEnergyTIE Fighters

You can also split your content

ACCEPTANCEDivide and conquerInteraction and boundariesTesting strategyBDD

Our Death Star is composed of smaller things

Page 14: TDD for the rest of us

@gil_zilberfeld

Summary

◉ Try it!◉ In a team◉ How about BDD?◉ And remember…

Page 15: TDD for the rest of us

@gil_zilberfeld

A death star with no tests is very dangerous!

Page 16: TDD for the rest of us

@gil_zilberfeld

May the Force be with you!

ANY QUESTIONS?

You can find me at:@gil_zilberfeld

http://www.GilZilberfeld.comhttp://www.EverydayUnitTesting.com