Hi all,

I hope this idea makes sense.

I was thinking about the issue of running subtests in parallel when I
thought about the idea of a "buffered subtest".  Basically, it would
work exactly like a normal subtest, but nothing would go to STDOUT or
STDERR until the final line (the non-nested test summary line).  In
other words:

  use Test::More tests => 2;

  buffered_subtest 'some subtest' = > sub {
    plan tests => 2;
    ok 1;
    ok 1
  };
  ok 1;

That might emit something like:

1..2
    1..2
    ok 1 
    ok 2
  ok 1 - 'some subtest'
  ok 2

So
if the 'some subtest' subtest didn't emit anything until
that summary 'ok 1' line, can we safely run subtests in parallel
without worrying about whether or not their output overlaps?
 
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