in reply to Re^12: Cleaning up unused subroutines
in thread Cleaning up unused subroutines
Granted, but you could remove the tests that explicitly test foo(), and see where you stand.
But then you'd have to know that foo() wasn't used--and that is exactly what the OP is trying to discover.
This is not about the utility of tests, or test suites. It's about about solving the OPs problem, and testing your test suite will not do that.
It's also (as an aside to the OPs question), about the limitations of unit test suites and realising that they are only a part of the picture. They must be combined with proper system tests, that is running the real code with realistic data under realistic operating conditions, because coverage tools show you what you've remembered to test, not what you didn't.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^14: Cleaning up unused subroutines
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 |