Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to instill the TDD habit in a team [duplicate]

Possible Duplicate:
How do I convince programmers in my team to do TDD?

What are some of the best ways to encourage and instil the TDD habit into a team that has never used TDD?

Can anyone share their experiences with the right and wrong way to get a team using TDD such that they find it effective and want to keep using it on all future projects?

like image 330
elasticrat Avatar asked Nov 26 '10 13:11

elasticrat


2 Answers

This may be simply getting you out of the frying pan and into the fire, but we've found that the best way to really convince people to adopt TDD is pair programming. TDD is one of those things that most people will intellectually know is effective, but they won't consistently apply it until they feel the benefit in their gut. Convincing a person's gut usually involves having someone sit with them and really do TDD for a time -- for some people this is a few days, for some a few weeks -- until they have that aha! moment when TDD saves them hours of debugging.

like image 58
Adam Milligan Avatar answered Oct 07 '22 22:10

Adam Milligan


If people don't want to do it you'll have a hard job convincing them of the benefits. If they are just unaware of it or agnostic, I'd recommend discussing it with them (maybe a presentation? team meeting?) and then offering to pair with them to fix a few bugs in that fashion - hopefully, they'll learn the benefits through experience.

like image 36
Jackson Pope Avatar answered Oct 07 '22 22:10

Jackson Pope