emalossi has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: TAP question
by ysth (Canon) on Feb 26, 2008 at 05:19 UTC | |
by amarquis (Curate) on Feb 26, 2008 at 06:42 UTC | |
by ysth (Canon) on Feb 26, 2008 at 08:53 UTC | |
by emalossi (Novice) on Feb 26, 2008 at 19:51 UTC | |
by ysth (Canon) on Feb 26, 2008 at 20:54 UTC | |
by emalossi (Novice) on Feb 27, 2008 at 15:45 UTC | |
by ysth (Canon) on Feb 27, 2008 at 20:38 UTC |