2 ms·
Writing tests adds time up front but almost wipes out the debugging stage for me (which used to make up > 50% of the time). The number of crazy edge cases that
by petercooper 17y ago
Writing tests adds time up front but almost wipes out the debugging stage for me (which used to make up > 50% of the time).
The number of crazy edge cases that have been picked up by my tests that would have just "got through" before scares me when looking at code without tests.
Of course, I acknowledge it's not for everyone and it's not for every project. If you have a very strong up-front design and speccing process coupled with a final integration testing process, I'd argue unit testing might not be necessary at all. As a lone developer with a lot to keep in his head, though, unit testing has been very useful.