Re: Add Test::Harness 2.x Prerequisite to Test::Simple?

2002-08-25 Thread Dave Rolsky
On Mon, 26 Aug 2002, Adrian Howard wrote: Can anybody give me a definitive version of when TODO tests started working in Test::Harness? From the Changes file I'm currently assuming everything after Test::Harness 2.03 inclusive should be okay. Personally, I would tend towards leaving the

Re: [PATCH MakeMaker.pm] Add documentation for ExtUtils::MakeMaker::prompt()

2002-08-22 Thread Dave Rolsky
On Tue, 20 Aug 2002, Michael G Schwern wrote: +=head2 Other Handy Functions + +=over 4 + +=item prompt + +my $value = prompt($message); +my $value = prompt($message, $default); + +The Cprompt() function provides an easy way to request user input +used to write a makefile. It

Test::Builder forks

2002-04-28 Thread Dave Rolsky
Run this little script: use Test::More tests = 10; use strict; my $pid; if ($pid = fork) { wait; ok(1) for 1..10; } else { exit; } And note the annoying # No tests run! message that gets printed before the first ok message. I can't think of any really

RE: Make Schwern Poor before 5.8.0

2001-11-20 Thread Dave Rolsky
On Tue, 20 Nov 2001, Tels wrote: If you would prefer to handle the ExtUtils::MakeMaker and ExtUtils::MM_* changes yourself let me know. You can do it. I'll wait until the dust settles (I wrote tests for routines that now get removed, so I am a bit conservative with starting another heap

Re: Starting with a test 1

2001-09-29 Thread Dave Rolsky
On Sat, 29 Sep 2001, Michael G Schwern wrote: Have you tried the Test::Builder thing yet? I think you should be able to solve your forking problem like so: Working on it use Test::More tests = 10; # or whatever. Except this needs to printed just once in the parent _before_ any tests

Re: Starting with a test 1

2001-09-29 Thread Dave Rolsky
On 29 Sep 2001, Piers Cawley wrote: If it's not a dumb question, why are you doing it that way? If you were using PerlUnit, aka Test::Unit::TestCase, you could do something like: Why am I doing what? Forking and starting tests at weird offsets? The forking is cause I need to load different

Starting with a test 1

2001-09-26 Thread Dave Rolsky
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

Re: Starting with a test 1

2001-09-26 Thread Dave Rolsky
On Wed, 26 Sep 2001, Michael G Schwern wrote: Uggg. No, there's no good way to handle this now unless there's some way $Num_Tests can make itself shared between forks. Well, I do keep track of it in my code and pass it around between forks. What I need is a way to set it. In the general

Re: [PATCH] Test::More isa_ok function

2001-09-24 Thread Dave Rolsky
On Mon, 24 Sep 2001, Michael G Schwern wrote: On Mon, Sep 24, 2001 at 06:23:58PM -0500, Dave Rolsky wrote: The patch below allows you to supply your own test name for the isa_ok function (I find the default insufficiently descriptive). I'd like to do the same for can_ok but I don't think

Re: [PATCH] More Test::More stuff

2001-09-24 Thread Dave Rolsky
On Mon, 24 Sep 2001, Michael G Schwern wrote: On Mon, Sep 24, 2001 at 06:42:55PM -0500, Dave Rolsky wrote: +sub eval_ok ($) { +my ($code, $name) = @_; + +eval { $code-() }; +if ($@) { + ok( 0, $name - $@ ); +} else { + ok( 1, $name

[PATCH] Test::More isa_ok function

2001-09-24 Thread Dave Rolsky
The patch below allows you to supply your own test name for the isa_ok function (I find the default insufficiently descriptive). I'd like to do the same for can_ok but I don't think that could be done without breaking backwards compatibility. -dave --- More.t~ Wed Sep 5 19:23:24 2001 +++