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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.