TDD and management

My manager begins to get very annoyed that I devote time to developing tests (he sees testing as what you do after writing the software). Him I convince him otherwise?

+4
source share
7 answers

You cannot win in a similar situation. Until he took the blue (tdd) pill, he did not recognize. The only thing you can do is either leave for a better job or do it your own way. And as you do the latter, explain to him how TDD is the best approach and gives him examples. But I would say his path or highway.

+5
source

Tell him that you will save time by writing tests now, since the testing and debugging phases are potentially shorter since you have already discovered many of the errors.

+6
source

He sees clearly that testing must be done. Doing this after writing the code takes as much time as before writing the code. If he likes, you can skip the test recording and use the time to write errors.

If he doesn’t think you should do the testing, then either change your mind or quit.

+3
source

The key is to understand your point of view of managers. You must step back and ask what the values ​​of the manager are and what his pain indicates. If you do not know what exactly they value.

+2
source
+1
source

For clients who were resistant to my repeated testing, I try to explain things in these terms: Writing tests in front costs me minutes in advance, but saves me hours near the concert. And from time to time it costs me hours in advance, but saves me days near the concert.

Some of the links provided in other answers are also excellent. If the boss is still resisting after this proof and argument have been shown ... I would have polished my resume. Your ability and desire to write code correctly should put you in a good position to pick up less terrible work.

+1
source

Another route might be to show how running tests ahead of time somehow changes the design. Based on tests, this casts doubt on the parts of the design and, ultimately, it will be a good way, and that it should check how much time is required for maintenance and support, as part of this is done to improve these areas. Just do not forget to recall some principles, such as How to make friends and influence people who may also be applicable here.

0
source

Source: https://habr.com/ru/post/1305417/


All Articles