[tap-l] Nested TAP

Andy Armstrong andy at hexten.net
Mon Apr 14 19:21:47 UTC 2008


On 14 Apr 2008, at 19:10, Ricardo SIGNES wrote:
> * Andy Armstrong <andy at hexten.net> [2008-04-14T08:55:13]
>> I'm biased - but I can't really get past my original proposal:
>>
>> ok 1 - foo
>> begin 2 - nested
>> 1..2
>> ok 1 - bar
>> not ok 2 - fribble
>> end 2 - nested
>> not ok 3 - fook
>>
>> That allows TAP to be aggregated just by slapping a begin / end  
>> around
>> a complete TAP document. I can use cat to aggregate TAP!
>
> What were the objections?  Two "ok 1" tests in one stream (if the  
> begin and
> plan are ignored as apparently-not-TAP) breaks some backcompat?


Using it isn't backwards compatible. I /think/ Curtis' idea was to  
indent the nested block (so it's ignored by current parsers) and  
provide a summary result for the block - so the whole thing parses  
correctly with current parsers.

-- 
Andy Armstrong, Hexten






More information about the tap-l mailing list