Test::More seems to now complain about running tests without a plan when
you use use_ok() with a module in a BEGIN block and don't set a plan
when you 'use Test::More'.
I've attached a patch that fixes this "fixage".
Subject: | 0001-Test-More-now-requires-plans-to-be-set-when-using-u.patch |
From 553203d50cb9ba162795a5251425ce2ac06a77c3 Mon Sep 17 00:00:00 2001
From: Andrew Moore <andrew.moore@liblime.com>
Date: Thu, 13 Nov 2008 17:32:47 -0600
Subject: [PATCH 1/1] Test::More now requires plans to be set when using use_ok()
---
t/search.t | 3 +--
t/www_bugzilla.t | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/t/search.t b/t/search.t
index 48ec984..910ec26 100644
--- a/t/search.t
+++ b/t/search.t
@@ -2,14 +2,13 @@
use strict;
use warnings;
-use Test::More;
+use Test::More tests => 22;
use File::Spec::Functions qw(catfile);
use Data::Dumper;
BEGIN { use_ok('WWW::Bugzilla::Search'); }
verify_host();
-plan tests => 21;
#my $server = 'landfill.bugzilla.org/bugzilla-tip';
my $server = 'landfill.bugzilla.org/bugzilla-stable';
diff --git a/t/www_bugzilla.t b/t/www_bugzilla.t
index 28541e5..b531925 100644
--- a/t/www_bugzilla.t
+++ b/t/www_bugzilla.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use Test::More; # tests => 71;
+use Test::More tests => 71;
use File::Spec::Functions qw(catfile);
use Data::Dumper;
@@ -10,7 +10,6 @@ BEGIN { use_ok('WWW::Bugzilla'); }
my $bug_number = 5731;
verify_host();
-plan tests => 70;
#my $server = 'landfill.bugzilla.org/bugzilla-tip';
my $server = 'landfill.bugzilla.org/bugzilla-stable';
--
1.5.6