Subject: | Test::Deep failures with newer Test::Tester |
New version of Test::Tester warns if it is not loaded before Test::Builder or modules that use Test::Builder. Normally this is just a warning, however because the use Test::Tester statement is in t/std.pm, it's causing an error and all tests to fail. I've included a patch to fix this problem. Yes it's a small patch but it does fix the problem :-) Basically moving the use Test::Tester line to the top.
I've had the same results on Mac OS X 10.4.2 and FreeBSD 5.4.
Test::Tester version:
perl -MTest::Tester -e 'print "$Test::Tester::VERSION\n";'
0.102
--- Test-Deep-0.087.org/t/std.pm 2004-08-06 21:07:11.000000000 -0400
+++ Test-Deep-0.087/t/std.pm 2005-07-19 07:49:05.000000000 -0400
@@ -1,10 +1,10 @@
+use Test::Tester;
use Test::More qw(no_plan);
use Test::NoWarnings;
use Test::Deep;
-use Test::Tester;
Test::Deep::builder(Test::Tester::capture());