Hello, my fellow devotees of the arcane art of Perlogy.

I have a moderately complex Perl/CGI application that I'm helping to maintain in production. I'm interested in automating complete code coverage testing of this app. I started out writing one test case, using LWP::UserAgent and HTML::Parser. That was sort of fun to do, and the results were OK, but I also got the sinking feeling that complete code coverage was going to take a whole lot of tedious and repetitive programming, or else a lot of very intense work trying to generalize the test cases so they could even be derived from the code itself. possibly.

A third possibility is that there may be something out there in Perl Monk land that does Exactly What I Want. But I'd settle for a nice framework, tuned toward testing CGI apps, that I could use to escape some of the drudgery of generating code coverage of my moderately complicated app.

The Test:: modules are too low level for what I want. CGI::Test is too. What I want at the high level is something to organize the data flow through a CGI-style application. Lower down, It would be cool to find something that analyzed the return values of a GET or POST to determine what the outputs were, and what the next inputs might be. This is exactly the process I followed to automate my single test case, dumping the hidden and input fields from successive posts to figure out what to do next.

Is there anything out there that fits that description?

"Even if you are on the right track, you'll get run over if you just sit there." - Will Rogers

In reply to CGI Test Framework? by hbo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.