DEV Community

Discussion on: What were your problems with "real world TDD"?

Collapse
 
luistm profile image
Luís Miranda

My problems? Managers and Architects who tell me we don't need tests!

Collapse
 
n_develop profile image
Lars Richter

I can see your point. But I see writing tests as part of my job. And I don't think developers should ask for permission to write tests. Ẁill developers actually be punished for writing tests "on their own" in your environment?

Collapse
 
luistm profile image
Luís Miranda

Even if you follow "writing tests as part of my job" it only works if other developers write tests to, or else they will keep breaking you work you previously done.

Thread Thread
 
markschweiger15 profile image
Mark Schweiger

I agree. Testing should be an environmental decision, but I still would write tests for my code if I were to work in a non-testing team.
Uncle Bob said something similar about doing TDD even though your peers don't do it and your managers are against it, though it's easier said than done in some cases.