in reply to Devel::Cover under Apache::Test

Probably should have simply updated my original post, but ah well ...

Given the massive flocking of monks to help me with this, along with the particularly awesome Google results it seems as though either I'm the only idiot trying to combine mod_perl2, Apache::Test and Devel::Cover or nobody knows how to fix it. In either event, I believe I have resolved the issue and figured I may as well update the post ...

Effectively, in a Perl tag of my httpd.conf, I was loading DBI and Apache::DBI (along with countless other custom and CPAN modules). After getting a bare-bones unit test working, I started to strip elements from my httpd.conf and found that all DBI related classes, when loaded in httpd.conf (either via use in a Perl tag, PerlModule or PerlLoadModule mod_perl directives, I would get this hauntingly criptic error. I now use those modules outside of my httpd.conf and all works well. Huh. Awesome.

Some other significant changes that were made which may have played a part (though I don't believe so) is basing my test directory off of this handy download: And although that includes some curiosities that I hadn't tried, it didn't immediately help although may have in the long run -- I really don't know.

Hope that helps someone out there.

---------
perl -le '$.=[qw(104 97 124 124 116 97)];*p=sub{[@{$_[0]},(45)x 2]};*d=sub{[(45)x 2,@{$_[0]}]};print map{chr}@{p(d($.))}'

Replies are listed 'Best First'.
Re^2: Devel::Cover under Apache::Test
by Anonymous Monk on Mar 12, 2013 at 04:42 UTC
    Indeed, it seems almost nobody is using Apache::Test to test mod_perl modules, and much less people is adding Devel::Cover to the mix. I kept stumbling on stupid problems mostly because of really bad docs, (undocumented) missing dependencies, and such..