views:

199

answers:

6

Possible Duplicate:
How to encourage implementation of TDD?

My boss knows about TDD but won’t allow us to use it because he thinks that it is just a passing hype that everyone talks about but no serious.

How could I convince him to follow TDD?

+3  A: 

Don't convince him. Just start doing TDD and next time he praises the good job you did on the project tell him it's all thanks to TDD.

zvolkov
Was the same I was typing before it closed
Robert Gould
+2  A: 

What benefits did you tell him TDD has? If you can demonstrate that it will get projects done faster, cheaper, and with less maintenance required, I'm sure he'll listen.

Jon B
+1  A: 

Use it for a few weeks and show him the increases in productivity you've made during then, in some measurable way.

Nathaniel Flath
+2  A: 

Your boss doesn't write code, he doesn't have to follow TDD.

Just write tests, be productive and when your coworkers are scratching their heads asking how you keep hitting it out of the park, tell them to write the tests for the code their writing before they write the code.

Aaron Maenpaa
A: 

Here is a similar question:

Convince to use TDD

CSharpAtl
A: 

Have you considered that he could be right?

I've seen plenty of useful cases for TDD; interfaces are a great example, since a proper set of tests is a contract between the two sides and these tests can also be used as an adjunct to formal requirements, but it is often useless at a low level. Unit tests that provide full coverage are often a waste! For Acceptance tests or System/Integration tests TDD can be useful.

Steve Moyer