11
Tdd as if you meant it Www.mozaicworks.com

TDD as if you Meant It @Bucharest 2012 08 14

Embed Size (px)

Citation preview

Page 1: TDD as if you Meant It @Bucharest 2012 08 14

Tdd as if you meant it

Www.mozaicworks.com

Page 2: TDD as if you Meant It @Bucharest 2012 08 14

Me

Adi BolboacaWww.mozaicworks.com

Page 3: TDD as if you Meant It @Bucharest 2012 08 14

TDD as if you meant it by Adrian Bolboaca

Why?

Reveals the true nature of TDDPure emergent design

Fastest feedback

Www.mozaicworks.com

Page 4: TDD as if you Meant It @Bucharest 2012 08 14

TDD as if you meant it by Adrian Bolboaca

Program:10 min Intro

25 min coding5 min retrospective

25 min coding5 min retrospective

25 min coding15 min closing retrospective

5 min Outro

Www.mozaicworks.com

Page 5: TDD as if you Meant It @Bucharest 2012 08 14

TDD as if you meant it by Adrian Bolboaca

Prerequisites:

Coding environmentTesting framework

Source control (git, svn, etc)

Www.mozaicworks.com

Page 6: TDD as if you Meant It @Bucharest 2012 08 14

TDD as if you meant it by Adrian Bolboaca

Problem: tic-tac-toe

Www.mozaicworks.com

Page 7: TDD as if you Meant It @Bucharest 2012 08 14

TDD as if you meant it by Adrian Bolboaca

Choose your pairChoose programming language

Code in pairsHave fun!

Www.mozaicworks.com

Page 8: TDD as if you Meant It @Bucharest 2012 08 14

TDD as if you meant it by Adrian Bolboaca

1)Write exactly one failing test2)Make the test pass by writing implementation code in

the test method3)When duplication is spotted extract the implementation

from tests to:a) a new method in the test classb)an existing method in the test class

4)When more methods belong together extract them into a new class

5)Refactor as requiredWww.mozaicworks.com

Page 9: TDD as if you Meant It @Bucharest 2012 08 14

TDD as if you meant it by Adrian Bolboaca

Why?

Reveals the true nature of TDDPure emergent design

Fastest feedback

Www.mozaicworks.com

Page 10: TDD as if you Meant It @Bucharest 2012 08 14

TDD as if you meant it by Adrian Bolboaca

Contact meUnit testing workshopRemote pair-programmingTDD workshopRefactoring workshopLegacy code workshopLegacy code retreatCode retreat

Www.mozaicworks.com

Page 11: TDD as if you Meant It @Bucharest 2012 08 14

TDD as if you meant it by Adrian Bolboaca

Extend your mentoring & training capacityAccelerate learning through communities of practiceGrow your functional leaders and top talents

http://www.mozaicworks.com

[email protected]

@adibolb