bimleshsharma has asked for the wisdom of the Perl Monks concerning the following question:

I have a web application running over apache. it reads .xsp files to invoke page on browser. The sample of xsp file is like this..
<?xml version="1.0"?> <xsp:page xmlns:xsp="http://apache.org/xsp/core11/w1" > <xsp:logic> use Data::Dumper; </xsp:logic> <test> <xsp:logic> my $u= $r->notes('tester'); die "must be admin to view this page" unless $r->notes('q')->{ +pp}; </xsp:logic> </test> </xsp:page>
and like this lots of other files are being used in that application. So, i want code coverage of this application. As we know (from above xsp file content) there is perl code and for that i was trying to use Devel::Cover module to get coverage of my web application. If we have single perl file then we can do like..
perl -MDevel::Cover asc.pl
and i am getting result of this but if we want to get coverage of a web application(having multiple files) then I am getting stuck that where and how to do that. Any help is much appreciated.

Replies are listed 'Best First'.
Re: Code Coverage on perl based web Application
by Anonymous Monk on Dec 16, 2014 at 07:31 UTC

    I have unnamed module or program that do stuff .... how do I make it do other stuff

    What is the name? Where is the documentation?

      I guess i explain everything in my post, so please let me know what name and doc is required. I have an application made in perl and i want code coverage on that using Devel::Cover or some other module. Generally if we have a perl file then we can do easily but if we have web application then there is problem and need help on that.