----- Original Message ----

> From: Ricardo SIGNES <perl...@rjbs.manxome.org>
> * Ovid [2009-04-06T04:35:41]
> > Wondering if anyone's played with nested TAP yet and has any
> > comments/requests/questions?  Lot's of people have asked for it, so it would
> > be good to make sure we've got it right before it's pushed out the door.
> 
> I've given it a bit of a look-over, and I think it's fine.  I'm probably not
> the most likely to want crazy things out of it, but really all I've wanted is 
> a
> way to say "now start a nested group."  This gets me that.
> 
> I thought it might be nice to give the group a description, but really just
> diagging a description should be good enough for me.  I can wait for TAP 15
> with preludes, envelopes, and the SWAK marker.

Actually, you do a get description:

  plan tests => 2;
  ok 1, 'some test';
  subtest "this is a description" => sub {
      plan tests => 2;
      ok 1, 'uno';
      ok 1, 'dos';
  };

Comes out as:

  1..2
  ok 1  - 'some test'
      1..2
      ok 1 - uno
      ok 2 - dos
  ok 2 - [subtest] this is a description

 
(The [subtest] marker was added with my latest commit).

The summary test name is whatever name you give the test and comes out in that 
trailing line.  Does that cover what you're needing?

Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Reply via email to