bimleshsharma has asked for the wisdom of the Perl Monks concerning the following question:
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..<?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 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.perl -MDevel::Cover asc.pl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Code Coverage on perl based web Application
by Anonymous Monk on Dec 16, 2014 at 07:31 UTC | |
by bimleshsharma (Beadle) on Dec 16, 2014 at 09:09 UTC | |
by Anonymous Monk on Dec 16, 2014 at 10:44 UTC |