On 1/21/07, Andy Armstrong <[EMAIL PROTECTED]> wrote:
> Of course, it also depends upon what
> output information is being scraped. If it's only something simple
> like 'All
> tests successful', then this is an easier task.
I presume anyone who wanted to know that currently would just be calling
T::H::execute_tests which returns three hashes that summarise the test
results.
This is a false assumption. You've got to consider that the
"canonical" way to run tests for a distribution is still "make test"
and thus Test::Harness is getting called from a command-line embedded
in a Makefile. The program calling "make test" (e.g. CPAN.pm) has no
way of getting structured data back from the function call -- it has
to have some sort of IPC. Thus my suggestion for dumping structured
output to text files.
David