in reply to Re^10: Cleaning up unused subroutines
in thread Cleaning up unused subroutines
If you have a point to make, please make it so we can discuss it.
Okay.
If the code has a function foo(), and you have dilligently added one or more tests in your comprehensive test suite that exercise foo(), then instrumenting your test suite is never going to tell you that your code no longer calls foo().
And this is far from the only situation in which test suites give you a falsely heightened sense of well-being. Test suites only test those things you thought of to test. If test suites were "comprehensive", then those modules out there written using the TDD methology would never receive bug reports--but they do.
It's a little like testing the temperature of the water by sticking a thermometer in it for a few seconds and then pressing the end against your tongue to see if it is too hot.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: Cleaning up unused subroutines
by Somni (Friar) on Oct 26, 2007 at 17:57 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2007 at 18:54 UTC | |
by Somni (Friar) on Oct 26, 2007 at 19:19 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2007 at 19:53 UTC | |
by Somni (Friar) on Oct 26, 2007 at 20:05 UTC | |
by eric256 (Parson) on Oct 26, 2007 at 18:20 UTC |