24 ms·
There are a couple more variables to consider in an economic evaluation: The time it takes to write test cases that catch all the same issues that static analy
by fauigerzigerk 15y ago
There are a couple more variables to consider in an economic evaluation:
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.
- Fahrenheit2539 15y agoI 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/ http://www.viva64.com/en/a/0078/