Posted by johnsmart
on July 28, 2008 at 11:34 AM PDT
Unit testing is generally considered to be a key part of software development. But how is unit testing really practiced in the industry at the moment?
Unit testing is generally considered to be a key part of software development. But how is unit testing really practiced in the industry at the moment? Do you test your code at all? Do you write your tests before or at the same time as your code (as in using a TDD or BDD-style approach), or do you wait until the application is written before coming back to the unit tests (e.g. "Yes boss, it's all done, I just have to write the unit tests")? Do you use test coverage metrics to see how much of your code is being executed during tests, and to isolate untested code?
Note, in this survey, the question is about practices in your team as a whole, not just you as an individual. This is to take into account the fact that people who hang around web sites like this are probably amongst the more IT-literate members of their teams, and the idea is to get a general picture of industry practices. Still, as usual, it's not a scientific survey by any means ;-).
Anyway, you can check out the pole here .