On Fri, Jun 18, 2004 at 04:52:42PM -0400, darren chamberlain wrote: > * Gabor Szabo <gabor at perl.org.il> [2004/06/18 23:34]: > > I am trying to add a bunch of tests in t/ using Test::More but in > > order to make sure we don't lose any previous test we would like to > > keep the test.pl file as it is. > > Is porting the tests in test.pl to *.t files not an option?
Little known fact: The output of test.pl is completely ignored by "make test". It is not run through Test::Harness. Failures in test.pl do not cause 'make test' to fail. Only by test.pl exiting with non-zero can it indicate failure. [1] Otherwise you have to look at it by eye largely defeating the point of the test. Therefore: tests as test.pl should be converted to .t files. [2] However: There's nothing really wrong with leaving it using Test.pm [3] [1] Test::More automatically exits abnormally on failure but I'm considering changing that to no longer be the default. [2] Want some fun? http://search.cpan.org/~dconway [3] Note to self: Write compatibility wrapper around Test::Builder to emulate Test.pm so it can live together with Test::More. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Fuck with me and I will saw off your legs. http://www.unamerican.com/