Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I've got a medium sized mod_perl application that uses CGI::Application. I'm wanting to increase the test coverage so I installed Devel::Cover. I'm having a hard time understanding what to do with it, however. Is there a tutorial somewhere (not Devel::Cover::Tutorial, which is really advice about coverage)? Googling, super search, and the perl-qa mailing list archives provided no clues. In more detail: I have a directory structure like:
The Foo/Bar levels are essentially empty, which is why the t/ dir sits at the bottom, rather than at the top. I run it like:
Question 1: Should I run the test.pl, webapp.pl, or embed it in the mod_perl handler? However that gives me very little result - just those for the script itself, wheras runnig webapp.pl gives a much more complete picutre, including coverage for all the included modules, etc. Or, I could run it on individual *.t files and merge the coverage databases ... Question 2: How do I interpret the results? Sorry for the the somewhat vague questions. This looks like a wonderful tool, but I'm feeling my way around in the dark and I don't even know what I'm looking for. Any general advice on its use is appreciated. thanks, qq In reply to Devel::Cover tutorial wanted by qq
|
|