develooper Front page | perl.qa | Postings from February 2007

Re: Test script with hierarchy

Thread Previous | Thread Next
From:
Adrian Howard
Date:
February 2, 2007 01:47
Subject:
Re: Test script with hierarchy
Message ID:
E703C1E7-5959-40D9-9D9C-12A6EAF72684@quietstars.com
On 2 Feb 2007, at 07:23, Gabor Szabo wrote:
[snip]
> Can I use TAP for this? Can TAP be used to represent such hierarchy?
> Is there a module already doing something like this even without  
> the HTML
> report?
[snip]

Currently there isn't any in built support for hierarchical test  
reporting in TAP. The topic's come up before, and a look at the list  
archives will probably be useful.

You can, of course, use some kind of structured text in the test  
description so you have output that looks something like:

  ok 1 - Test A/1/1 - fribble cleared
  ok 2 - Test A/1/2 - bar set
  ok 3 - Test A/1/3 - widget bobbling
  ok 4 - Test A/2/1 - finkle barbed correctly

and then parse it out with TAPx::Parser and friends. I believe a guy  
from Yahoo did something similar - can't remember if the code ever  
escaped though...

Cheers,

Adrian


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About