tphyahoo has asked for the wisdom of the Perl Monks concerning the following question:
Let's say I have an object-oriented distribution set up with a "modules" directory that has all the objects I want, and a /t directory with a bunch of tests.
I would like some way to check for object methods that don't have any tests. Does anything like this "test suggestor" already exist? Seems like a useful thing to be able to do. (Notice: this is just testing the object->methods(), not every single sub.)
If not, any tips on best practices on test coverage, other than "go by the gut" for this type of situation (object methods), or just testing in general?
Another idea I had was to have the .t testing files in the same directory as the .pm object files, and then at least I could see which .pm files didn't have any tests with a visual comparison. But that doesn't seem real robust ;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Test suggestor?
by etm117 (Pilgrim) on Jul 11, 2005 at 12:18 UTC | |
by tphyahoo (Vicar) on Jul 11, 2005 at 12:51 UTC | |
by mpeters (Chaplain) on Jul 11, 2005 at 13:39 UTC | |
by tphyahoo (Vicar) on Jul 11, 2005 at 14:02 UTC | |
by herveus (Prior) on Jul 11, 2005 at 13:17 UTC |