Skip Menu |

This queue is for tickets about the CPAN-Dependency CPAN distribution.

Report information
The Basics
Id: 24707
Status: resolved
Priority: 0/
Queue: CPAN-Dependency

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

Bug Information
Severity: Normal
Broken in: 0.10
Fixed in: 0.11



Subject: 10process.t fails due to CPAN change
10process.t fails. It seems likely that this is due to changes in CPAN since it was written. Testing should probably not depend on external resources. ok 1 - object created ok 2 - object is defined ok 3 - object is of expected type ok 4 - object is of expected ref ok 5 - processing WWW::Mechanize ok 6 - checking information for WWW::Mechanize ok 7 - processing Maypole not ok 8 - checking information for Maypole # Failed test 'checking information for Maypole' # in t/10process.t at line 163. # Comparing hash keys of $data->{"prereqs"} # Missing: 'Cgi-Simple', 'Class-DBI-AsForm', 'Class-DBI-FromCGI' # Extra: 'CGI-Simple', 'CGI-Untaint-date', 'CGI-Untaint-email', 'Class-DBI-Plugin-Type', 'File-MMagic-XS', 'HTML-Tree', 'HTTP-Body' ok 9 - processing Template ok 10 - checking information for Template ok 11 - processing CPAN::Search::Lite not ok 12 - checking information for CPAN::Search::Lite # Failed test 'checking information for CPAN::Search::Lite' # in t/10process.t at line 163. # Comparing hash keys of $data->{"prereqs"} # Missing: 'Archive-Tar', 'IO-Zlib', 'Sort-Versions', 'XML-Parser' # Extra: 'Apache2-SOAP', 'Pod-Xhtml', 'SOAP-Lite', 'XML-SAX-ExpatXS' ok 13 - processing Net::Pcap not ok 14 - checking information for Net::Pcap # Failed test 'checking information for Net::Pcap' # in t/10process.t at line 163. # Comparing hash keys of $data->{"prereqs"} # Extra: 'IO-Interface' ok 15 - processing SVK not ok 16 - checking information for SVK # Failed test 'checking information for SVK' # in t/10process.t at line 163. # Comparing hash keys of $data->{"prereqs"} # Missing: 'Clone', 'File-Type', 'Pod-Escapes', 'Pod-Simple', 'Regexp-Shellish', 'TimeDate', 'YAML' # Extra: 'App-CLI', 'Class-Accessor', 'Class-Data-Inheritable', 'List-MoreUtils', 'Path-Class', 'SVN-Mirror', 'TermReadKey', 'UNIVERSAL-require', 'YAML-Syck' ok 17 - processing Test::Class not ok 18 - checking information for Test::Class # Failed test 'checking information for Test::Class' # in t/10process.t at line 163. # Comparing hash keys of $data->{"prereqs"} # Extra: 'Devel-Symdump', 'Test-Exception' ok 19 - calculate_score() ok 20 - score of URI ok 21 - score of libwww-perl ok 22 - score_by_dists() ok 23 - checking score of YAML ok 24 - checking score of Test-Class ok 25 - checking score of App-CLI ok 26 - checking score of Devel-Symdump ok 27 - checking score of UNIVERSAL-moniker ok 28 - checking score of CGI-Simple ok 29 - checking score of Class-DBI-Loader ok 30 - checking score of PerlIO-eol ok 31 - checking score of List-MoreUtils ok 32 - checking score of HTML-Parser ok 33 - checking score of CGI-Untaint-date ok 34 - checking score of SVN-Simple ok 35 - checking score of Class-Data-Inheritable ok 36 - checking score of PerlIO-via-symlink ok 37 - checking score of Class-DBI-Plugin-RetrieveAll ok 38 - checking score of Maypole ok 39 - checking score of Pod-Xhtml ok 40 - checking score of Config-IniFiles ok 41 - checking score of SVK ok 42 - checking score of Data-Hierarchy ok 43 - checking score of XML-SAX-ExpatXS ok 44 - checking score of Lingua-StopWords ok 45 - checking score of Test-MockModule ok 46 - checking score of TermReadKey ok 47 - checking score of AI-Categorizer ok 48 - checking score of URI ok 49 - checking score of Class-DBI-Pager ok 50 - checking score of Test-LongString ok 51 - checking score of SVN-Mirror ok 52 - checking score of HTTP-Body ok 53 - checking score of WWW-Mechanize ok 54 - checking score of Class-DBI-Plugin-Type ok 55 - checking score of CGI-Untaint ok 56 - checking score of SOAP-Lite ok 57 - checking score of Archive-Zip ok 58 - checking score of DBD-mysql ok 59 - checking score of UNIVERSAL-require ok 60 - checking score of Algorithm-Annotate ok 61 - checking score of libwww-perl ok 62 - checking score of Perl-Tidy ok 63 - checking score of Template-Plugin-Class ok 64 - checking score of CPAN-DistnameInfo ok 65 - checking score of Class-DBI-Loader-Relationship ok 66 - checking score of Apache2-SOAP ok 67 - checking score of HTML-Tree ok 68 - checking score of IO-Interface ok 69 - checking score of Class-Accessor ok 70 - checking score of IO-Digest ok 71 - checking score of File-MMagic-XS ok 72 - checking score of AppConfig ok 73 - checking score of Test-Exception ok 74 - checking score of Template-Toolkit ok 75 - checking score of Class-DBI-AbstractSearch ok 76 - checking score of Path-Class ok 77 - checking score of txt2html ok 78 - checking score of CGI-Untaint-email ok 79 - checking score of PerlIO-via-dynamic ok 80 - checking score of Class-DBI-SQLite ok 81 - checking score of Class-Autouse ok 82 - checking score of YAML-Syck ok 83 - checking score of Net-Pcap ok 84 - checking score of Algorithm-Diff ok 85 - checking score of Class-DBI ok 86 - checking score of Lingua-Stem ok 87 - checking score of CPAN-Search-Lite ok 88 - save_deps_tree() ok 89 - file exists ok 90 - saved file has the same data as object CPANPLUS currently only supports one CPANPLUS::Backend object per running program at /usr/local/lib/perl5/site_perl/5.8.8/CPANPLUS/Internals.pm line 155. ok 91 - object created ok 92 - object is defined ok 93 - object is of expected type ok 94 - object is of expected ref ok 95 - load_deps_tree() ok 96 - new object has the same data as saved file ok 97 - new object has the same data as previous object # Looks like you planned 88 tests but ran 9 extra. # Looks like you failed 5 tests of 97 run.
PJS wrote: Show quoted text
> 10process.t fails. It seems likely that this is due to changes > in CPAN since it was written. Testing should probably not depend > on external resources.
You're right, but in the case of CPAN::Dependency, its main purprose is to work on external data. Maybe I should try to see if I could create something like mocked CPAN data, or more simply to check on more stable distributions instead of fast-moving targets like SVK. In the mean time, I have fixed this script. Thanks for your report. -- Close the world, txEn eht nepO.
Fixed with CPAN::Dependency 0.11, available on the CPAN. -- Close the world, txEn eht nepO.