Hi Guys,
I've got a very complicated (self-penned) test runner script that extracts all the modules in a directory tree, then uses Test::Harness::Straps to capture the output of running a test fiel against each one.
Then, I discovered Test::Class and Test::Class::Load which removes the need for all that dodgy recursive directory parsing, etc.
However, I've now got 2 issues - any ideas? Ta in advance.
- How do I capture the output of Test::Class->runtests in the same way I do with Test::Harness::Straps ?
- My script also extracts all functions from the modules, and creates a list of which have (or not) corresponding test functions that test them (so we can easily see what's been tested, at least at a basic level). Is there are way to do this with Test::Class ?
Ultimately, we'll be doing TDD, so point 2 won't be as much of an issue, but surprise, surprise, we have a *mountain* of untested code to consider first :-)
Cheers in advance,
Steve
Hogsmill
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.