Subject: | tests fail |
I haven't built Module::CPANTS::Analyse previously
perl 5.16.1 RHEL5
latest versions of distributions.
Test Summary Report
-------------------
t/10_analyse.t (Wstat: 2048 Tests: 25 Failed: 8)
Failed tests: 2, 6, 8-9, 11, 14, 17, 20
Non-zero exit status: 8
t/calc_test_yaml_meta.t (Wstat: 256 Tests: 4 Failed: 1)
Failed test: 4
Non-zero exit status: 1
Files=21, Tests=274, 23 wallclock secs ( 0.12 usr 0.03 sys + 13.04 cusr 1.27 csys = 14.46
CPU)
Result: FAIL
Failed 2/21 test programs. 9/274 subtests failed.
got significantly better test results
Test Summary Report
-------------------
t/10_analyse.t (Wstat: 512 Tests: 25 Failed: 2)
Failed tests: 6, 9
Non-zero exit status: 2
t/calc_test_yaml_meta.t (Wstat: 256 Tests: 4 Failed: 1)
Failed test: 4
Non-zero exit status: 1
Files=21, Tests=274, 22 wallclock secs ( 0.12 usr 0.03 sys + 12.96 cusr 1.21 csys = 14.32
CPU)
Result: FAIL
Failed 2/21 test programs. 3/274 subtests failed.
after comparing Data::Dumper output versus expected
result in t/10_analyse.t and adding some code
my $d=$a->d;
my $kw=$a->d->{kwalitee};
$t->{kwalitee}{kwalitee} = ignore; # another Test::Deep import
#PATCH filter the fields that were different
for my $fn ('kwalitee', 'metayml_conforms_spec_current', 'metayml_conforms_to_known_spec',
'valid_signature') {
delete $kw->{$fn} if (exists $kw->{$fn});
delete $t->{$fn} if (exists $t->{$fn});
}
cmp_deeply($kw, superhashof($t->{kwalitee}), "kwalitee of $t->{dist}")
or diag(Dumper $kw);
The remaining failures
t/10_analyse.t .............. 1/25
# Failed test 'error of t/eg/Pipe-0.03.tar.gz'
# at t/10_analyse.t line 485.
# Compared array length of $data->{"metayml_conforms_spec_current"}
# got : array with 2 element(s)
# expect : array with 9 element(s)
# $VAR1 = {
# 'easily_repackageable' => 'easily_repackageable_by_fedora',
# 'easily_repackageable_by_fedora' => 'fits_fedora_license',
# 'has_no_bugs_reported_in_debian' => 'Number of bugs reported: 2. See: <a
href=http://packages.debian.org/src:libpipe-perl>Basic homepage</a>',
# 'has_version_in_each_file' => [
# 'lib/Pipe/Tube/Say.pm',
# 'lib/Pipe/Tube/Cat.pm',
# 'lib/Pipe/Tube/Map.pm',
# 'lib/Pipe/Tube/Uniq.pm',
# 'lib/Pipe/Tube/Glob.pm',
# 'lib/Pipe/Tube/Sort.pm',
# 'lib/Pipe/Tube/Find.pm',
# 'lib/Pipe/Tube/Grep.pm',
# 'lib/Pipe/Tube/Split.pm',
# 'lib/Pipe/Tube/Print.pm',
# 'lib/Pipe/Tube/Chomp.pm',
# 'lib/Pipe/Tube.pm',
# 'lib/Pipe/Tube/For.pm',
# 'lib/Pipe/Tube/Tuple.pm'
# ],
# 'manifest_matches_dist' => [
# 'MANIFEST (27) does not match dist (26):',
# 'Missing in MANIFEST: ',
# 'Missing in Dist: META.yml'
# ],
# 'metayml_conforms_spec_current' => [
# '1.4',
# 'Expected a map structure from data string or file.
[Validation: 1.4]'
# ],
# 'metayml_conforms_to_known_spec' => [
# '1.0',
# 'Expected a map structure from data string or file.
[Validation: 1.0]'
# ],
# 'valid_signature' => -1
# };
# Failed test 'error of t/eg/PPI-HTML-1.07.tar.gz'
# at t/10_analyse.t line 485.
# Compared array length of $data->{"metayml_conforms_spec_current"}
# got : array with 2 element(s)
# expect : array with 4 element(s)
# $VAR1 = {
# 'metayml_conforms_spec_current' => [
# '1.4',
# 'Expected a map structure from data string or file.
[Validation: 1.4]'
# ],
# 'metayml_conforms_to_known_spec' => [
# '1.0',
# 'Expected a map structure from data string or file.
[Validation: 1.0]'
# ],
# 'valid_signature' => -1
# };
t/10_analyse.t .............. 23/25 # Looks like you failed 2 tests of 25.
t/10_analyse.t .............. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/25 subtests
t/calc_test_yaml_meta.t ..... 1/4
# Failed test 'metrics are as expected'
# at t/calc_test_yaml_meta.t line 85.
# Compared $data->{"metayml_conforms_spec_current"}
# got : '0'
# expect : '1'
# Looks like you failed 1 test of 4.
t/calc_test_yaml_meta.t ..... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests