[tap-l] Deferred Plans

Adrian Howard adrianh at quietstars.com
Tue Nov 20 11:41:26 EST 2007


Taken to tap-l from perl-qa...

On 19 Nov 2007, at 13:06, Andy Armstrong wrote:
[snip]
> I think we really need to reach a decision on
>
> http://testanything.org/wiki/index.php/Test_Groups versus
> http://testanything.org/wiki/index.php/Test_Blocks

Having just glanced at these again it's occurred that if you change  
the "end" keyword in the block proposal to an "ok" / "not ok" (based  
on treating the block of tests as a successful/unsuccessful test run)  
you get:

   1..4
   begin 1 Object creation
     1..2
     ok 1 Object created OK
     ok 2 Object isa Flunge::Twizzler
   ok 1 Object creation
   ok 2 Clone OK
   begin 3 Methods
     1..4
     ok 1 has twizzle method
     ok 2 has burnish method
     ok 3 has spangle method
     not ok 4 has frob method
   not ok 3 Methods
   ok 4 Resources released

which (I think) still reads nicely, and has the advantage of being  
100% compatible with older parsers.

Makes more work for whatever is generating the TAP of course.

Just a thought...

Adrian


More information about the tap-l mailing list