Be professional, do unit tests

by tkoski

Let us see the hands of developers who are practising Test Driven Development or at least does unit tests before the code is delivered?

We have been asking the above question in different conferences, companies and community meetings. In average 40% 25% of developers rise their hands.

That is awful.

Only 25% does unit tests? It means that 75% of the developers don’t know if their code works or not!

We, developers, should be ashamed of ourself.

If we are not doing unit tests at this point in the history of software development then something is wrong.

People have been talking about the practise already far too long and the conclusions are always the same:

  • it helps you so much
  • it makes you go so much faster
  • it helps you to deliver much better code

If you are not doing unit tests you need to seriously stop and consider why.

Are you not doing TDD because your management does not support it? Are you not doing unit tests because “it brings too much overhead to the project”? Are you not doing unit tests because “it makes the development slower”?

It is unprofessional to not know that your code works. It is unprofessional to release code that you are not sure if it will work or not. Know that it works.

And how do you know that it works? We got tests.

So lets do sane unit tests at least in one point of the project.


tuomas@madebymonsieur.com

Update: