Greetings Monks,
First post here, I hope you can nudge me in the direction of an answer to this question. I'm building a test framework that tests a number of different components, each with it's own suite of test cases. So far I've been able to get each suite's results into a single TAP output file for that suite with all of the test cases numbered from 1..n

However one of the suites I have to integrate consists of a number of .t files. Each one generates TAP. I've tried running all of these using TAP::Harness. This runs the tests fine, however the final output from:

runtests (@testfiles);

is no longer in TAP format.

When the framework completes I parse each of the final results TAP files from each test suite using TAP::Parser, to generate a single report for each component.

I could of course set STDOUT to a file and do something like this:

for each my $testfile (@testfiles){system ("perl $testfile"); }

But if I do that I'll obviously get TAP 1..n for each test file rather than 1..(total number of test cases in all files)

If this is clearer than mud, could anyone tell me whether there is a way to either:
a) run all test files and generate a single TAP output file 1..n test cases total OR
b) parse n TAP files where each one presents results 1..n for each test file into a single comprehensive output

I'm hoping not to have to do any editing to the already existing .t files in this test suite.

Thanks for the help,

Eric


In reply to TAP question by emalossi

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.