By CodeJustin
via dobbscodetalk.com
Submitted: Nov 09 2009 / 00:55
I love code which is stable and rigorous, I just don't feel that unit testing is the most effective way to achieve it.
I stumbled upon the following question posted on StackOverflow, "What's your most controversial programming opinion? ", and it made me think about my views on unit testing.
I have mixed feelings on unit testing. I do use it often, but I find that it does not give me sufficient peace of mind, compared to other code verification techniques. The following is my list of code verification techniques in order of importance:
1. System testing
2. Use the compiler's type checker
3. Use assertions
4. Code reviews
5. Unit testing
Add your comment