Re:John Carmack on the importance of Static Code Analysis
by Fahrenheit2539 on Saturday December 24, 2011 @05:41AM
(#3388686)
I would say that the best economic value is being delivered if we consider some code fragments that are almost never covered by tests (any of them) - like error detector.
Guys at pvs-studio brought in some pretty funny example of such errors: http://www.viva64.com/en/a/0078/
The time it takes to write test cases that catch all the same issues that static analysis would. I believe that testing lends itself to finding different kinds of defects and it would be very unproductive to write tests that cover all the same issues that static analysis can find (in statically typed code)
The cost of a bug slipping through the net. Some types of bugs cannot be ruled out by testing, but it may be possible to prove that they are not present. E.g. non deterministic concurrency bugs.