Having problems with TAP::Harness / TAP::Parser output

Peter Leonard pete at peteleonard.com
Wed Apr 8 06:36:34 GMT 2009


Michael,

The sample code I provided before is a stripped-down example of what I'm 
trying to do.

Note that the sample code does not have access to the test results - for 
that, I have to enable PERL_TEST_HARNESS_DUMP_TAP, and then re-parse the 
output.  Which then doesn't work if the TAP file is empty.

Best,

Peter



Michael Peters wrote:
> Peter Leonard wrote:
>
>   
>> Sometimes test scripts fail due to missing dependencies (e.g. developers 
>> forget to check in dependent CPAN modules).  When test scripts blow up 
>> due to this, an empty TAP file is left behind - which means I have no 
>> output to parse to give appropriate feedback as to what actually 
>> failed.  Furthermore, when the responsible developer re-tests their 
>> code, it works on their end, as the un-checked-in module is happily 
>> present in their environment.
>>     
>
> TAP::Harness::Archive only stores the TAP that it gets back from the processes 
> that are run. If the process never runs there is no TAP. How are you running 
> your tests? Are you using the merge option of TAP::Harness? It will merge stderr 
> and stdout together, but I'm not sure what TAP::Harness does with subprocesses 
> that die prematurely like that.
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.hexten.net/pipermail/tapx-dev/attachments/20090408/318d64dc/attachment.htm 


More information about the tapx-dev mailing list