On 11/03/07, Michael G Schwern <[EMAIL PROTECTED]> wrote:
Fergal Daly wrote:
> http://perl-qa.yi.org/index.php/Test_Groups
Rationale?
Why does this need a TAP mod? Why not let the producer handle it?
plan "as_you_go";
plan add => 2;
pass;
pass;
plan add => 3;
pass;
pass;
pass;
Would output:
ok 1
ok 2
ok 3
ok 4
ok 5
1..5
which is perfectly legal TAP.
Did group 1 produce 2 tests and group 2 produce 3 or was it the other
way around? Worse,
ok 1
ok 2
ok 3
...
ok 1001
1..1000
where did my extra test come from? I know, that's what we have right
now but that's no reason to not make it better.
Finally, this allows you to fork a process to run a block with no
prior knowledge of how many tests are going to happen inside the
forked process, not a killer app but it might be useful for people who
have tests involving lots of network latency, they could run in
parallel.
Updated the wiki.
And what's with the ALL CAPS OK?
It's me misremembering what TAP looks like.
Also updated.
F