Geoffrey Young wrote:
hi all :)
I just commited a patch to Apache-Test in svn that removes all the
additional work involved with getting Devel::Cover to work for server side
tests. now a simple 'make testcover' should be all you need to do to get
coverage results from code within handler() subroutines - no more adding
modperl_extra.pl entries or other associated foo.
so, for the few here interested in this kind of thing, I'd like to hear
people's test results for completeness sake. on my own system (which is
slowly dying), I get random core dumps and Devel::Cover failures both in the
way I used to do it and the way it works now, so in that sense things work
out "the same." but if other people who used to have stuff working now have
increased problems I'd love to hear about it. but hopefully all this patch
does is lower the barrier to getting coverage in the apache world.
for those not terribly svn savvy, you can get Apache-Test from svn like so
$ svn checkout \
> http://svn.apache.org/repos/asf/perl/Apache-Test/trunk Apache-Test
thanks, and enjoy.
--Geoff
Nice work, Geoff
A few issues:
1)
% make testcover
Cannot run testcover action unless Devel::Cover is installed
and after installing Devel::Cover it still gives the same error, since
it's hardcoded in Makefile.PL. May be adding a check and suggesting to
rebuild Makefile if Devel::Cover is now installed?
2) at the end of run it gives:
All tests successful, 1 test skipped.
Files=7, Tests=22, 140 wallclock secs (134.28 cusr + 5.51 csys = 139.79 CPU)
server localhost:8529 shutdown
make[1]: Leaving directory `/home/stas/apache.org/Apache-Test'
make: cover: Command not found
make: [testcover] Error 127 (ignored)
I don't use a standard perl, so 'cover' is not in the path. So it should
probably do which(cover) and run it only then? Also could check the
directory perl lives and add that to PATH, since that's where 'cover'
lives if not installed global-wise.
3)
I do get segfaults and they are quite inconsistent. Even on Apache-Test's
test suite. Of course this probably has nothing to do with your work,
since have happened before as well. I wonder whether Devel::Cover is just
as unstable under plain perl.
--
_____________________________________________________________
Stas Bekman mailto:[EMAIL PROTECTED] http://stason.org/
MailChannels: Assured Messaging(TM) http://mailchannels.com/
The "Practical mod_perl" book http://modperlbook.org/
http://perl.apache.org/ http://perl.org/ http://logilune.com/