TDD for the rest of us...
-
Upload
gil-zilberfeld -
Category
Software
-
view
562 -
download
3
description
Transcript of TDD for the rest of us...
![Page 1: TDD for the rest of us...](https://reader036.fdocuments.us/reader036/viewer/2022081412/53fe9c9e8d7f72835c8b4570/html5/thumbnails/1.jpg)
@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...](https://reader036.fdocuments.us/reader036/viewer/2022081412/53fe9c9e8d7f72835c8b4570/html5/thumbnails/2.jpg)
@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...](https://reader036.fdocuments.us/reader036/viewer/2022081412/53fe9c9e8d7f72835c8b4570/html5/thumbnails/3.jpg)
@gil_zilberfeld
Test Driven Development
![Page 4: TDD for the rest of us...](https://reader036.fdocuments.us/reader036/viewer/2022081412/53fe9c9e8d7f72835c8b4570/html5/thumbnails/4.jpg)
@gil_zilberfeld
Demo
![Page 5: TDD for the rest of us...](https://reader036.fdocuments.us/reader036/viewer/2022081412/53fe9c9e8d7f72835c8b4570/html5/thumbnails/5.jpg)
@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...](https://reader036.fdocuments.us/reader036/viewer/2022081412/53fe9c9e8d7f72835c8b4570/html5/thumbnails/6.jpg)
@gil_zilberfeld
Issues• Requires discipline• Works better for greenfield projects• Not for everyone
![Page 7: TDD for the rest of us...](https://reader036.fdocuments.us/reader036/viewer/2022081412/53fe9c9e8d7f72835c8b4570/html5/thumbnails/7.jpg)
@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...](https://reader036.fdocuments.us/reader036/viewer/2022081412/53fe9c9e8d7f72835c8b4570/html5/thumbnails/8.jpg)
@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...](https://reader036.fdocuments.us/reader036/viewer/2022081412/53fe9c9e8d7f72835c8b4570/html5/thumbnails/9.jpg)
@gil_zilberfeld
Site and blog: www.gilzilberfeld.com
Email: [email protected]
Twitter: @gil_zilberfeld
Questions?