On Wed, Sep 26, 2001 at 12:50:42PM -0500, Dave Rolsky wrote: > For my Alzabo tests, I do some weird stuff involving forking off processes > during tests and running the same (basically same) set of tests multiple > times, each time with different modules loaded. The parent process > calculates how many tests will be involved in each run and how many runs > will occur to print the '1..?' stuff at the beginning. > > As part of this, I need to be able to tell the forked process to start its > test count at a certain number (greater than 1). > > There's no way to do this with Test::Simple currently. What I need is to > be able to set $Planned_Tests and $Num_Tests without print the "1..$x" bit > again. > > Either that or set a $Offset so that when it prints the test number it > prints $Num_Tests + $Offset.
Uggg. No, there's no good way to handle this now unless there's some way $Num_Tests can make itself shared between forks. In the general sense, there is a good solution to this problem. First, there's the 'no_plan' feature of Test::More, so you can run an indeterminate number of tests. Second, Test::Harness allows you to use unnumbered tests, however, there's currently no support for this in Test::Simple/More. It's on the TODORSN list. -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl6 Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One <Skrewtape> I've heard that semen tastes different depending on diet. Is that true? <Skrewtape> Hello? <Schwern> Skrewtape: Hang on, I'm conducting research.