Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-CAPTCHA CPAN distribution.

Report information
The Basics
Id: 17146
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-CAPTCHA

People
Owner: Nobody in particular
Requestors: ZACKSE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.01
Fixed in: (no value)



Subject: Broken dependency and test dependencies
This report refers to version 0.01. This module requires Data::Random, but it isn't listed in the dependencies in the Build.PL file. There are two test scripts, 02-create.t and 03-verify.t, that require Test::WWW::Mechanize but don't check for its existence first. The attached patch addresses these issues. Thanks for your work on this module! -E
Subject: cap-captcha.patch
diff -ur CGI-Application-Plugin-CAPTCHA-0.01.orig/Build.PL CGI-Application-Plugin-CAPTCHA-0.01/Build.PL --- CGI-Application-Plugin-CAPTCHA-0.01.orig/Build.PL 2006-01-19 01:23:54.604532624 -0500 +++ CGI-Application-Plugin-CAPTCHA-0.01/Build.PL 2006-01-19 01:27:10.505751112 -0500 @@ -12,6 +12,7 @@ 'CGI::Application' => '>= 4.00', 'Module::Build' => 0, 'GD::SecurityImage' => 0, + 'Data::Random' => 0, }, create_makefile_pl => 'traditional', create_readme => 1, diff -ur CGI-Application-Plugin-CAPTCHA-0.01.orig/t/02-create.t CGI-Application-Plugin-CAPTCHA-0.01/t/02-create.t --- CGI-Application-Plugin-CAPTCHA-0.01.orig/t/02-create.t 2006-01-19 01:23:54.604532624 -0500 +++ CGI-Application-Plugin-CAPTCHA-0.01/t/02-create.t 2006-01-19 01:30:05.272182576 -0500 @@ -2,8 +2,14 @@ use strict; use warnings; -use Test::More tests => 4; -use Test::WWW::Mechanize; +use Test::More; + +BEGIN { + eval "use Test::WWW::Mechanize"; + plan skip_all => "Test::WWW::Mechanize required for tests" if $@; +} + +plan tests => 4; # Bring in testing hierarchy use lib './t'; diff -ur CGI-Application-Plugin-CAPTCHA-0.01.orig/t/03-verify.t CGI-Application-Plugin-CAPTCHA-0.01/t/03-verify.t --- CGI-Application-Plugin-CAPTCHA-0.01.orig/t/03-verify.t 2006-01-19 01:23:54.604532624 -0500 +++ CGI-Application-Plugin-CAPTCHA-0.01/t/03-verify.t 2006-01-19 01:30:20.489869136 -0500 @@ -2,8 +2,14 @@ use strict; use warnings; -use Test::More tests => 7; -use Test::WWW::Mechanize; +use Test::More; + +BEGIN { + eval "use Test::WWW::Mechanize"; + plan skip_all => "Test::WWW::Mechanize required for tests" if $@; +} + +plan tests => 7; # Bring in testing hierarchy use lib './t';
From: dsteinbrunner [...] pobox.com
On Thu Jan 19 01:42:43 2006, ZACKSE wrote: Show quoted text
> This report refers to version 0.01. > > This module requires Data::Random, but it isn't listed in the > dependencies in the Build.PL file. > > There are two test scripts, 02-create.t and 03-verify.t, that require > Test::WWW::Mechanize but don't check for its existence first.
Test::Exception appears to be another missing test dependency: t/01-config.......Can't locate Test/Exception.pm in @INC (@INC contains: /home/.moussette/ image01/.cpan/build/CGI-Application-Plugin-CAPTCHA-0.01/blib/lib /home/.moussette/ image01/.cpan/build/CGI-Application-Plugin-CAPTCHA-0.01/blib/arch /etc/perl /usr/local/ lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 / usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/ share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/ local/lib/site_perl) at t/01-config.t line 6. BEGIN failed--compilation aborted at t/01-config.t line 6. # Looks like your test died before it could output anything. t/01-config.......dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-7 Failed 7/7 tests, 0.00% okay
From: dsteinbrunner [...] pobox.com
On Thu Jan 19 01:42:43 2006, ZACKSE wrote: Show quoted text
> This report refers to version 0.01. > > This module requires Data::Random, but it isn't listed in the > dependencies in the Build.PL file. > > There are two test scripts, 02-create.t and 03-verify.t, that require > Test::WWW::Mechanize but don't check for its existence first.
Test::Exception appears to be another missing test dependency: t/01-config.......Can't locate Test/Exception.pm in @INC (@INC contains: /home/.moussette/ image01/.cpan/build/CGI-Application-Plugin-CAPTCHA-0.01/blib/lib /home/.moussette/ image01/.cpan/build/CGI-Application-Plugin-CAPTCHA-0.01/blib/arch /etc/perl /usr/local/ lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 / usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/ share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/ local/lib/site_perl) at t/01-config.t line 6. BEGIN failed--compilation aborted at t/01-config.t line 6. # Looks like your test died before it could output anything. t/01-config.......dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-7 Failed 7/7 tests, 0.00% okay
Resolved in upcoming 0.02 release. Thanks for reporting this!