ehuelsmann / perl-test-dependencies Goto Github PK
View Code? Open in Web Editor NEWVerify declared dependencies in META.yml or cpanfile against source (vice versa)
Verify declared dependencies in META.yml or cpanfile against source (vice versa)
Test::Dependencies 0.20 fails all but one tester.
Test log from one of the testers:
# Failed test 'use Test::Dependencies::Heavy;'
# at t/00-load-basic.t line 7.
# Tried to use 'Test::Dependencies::Heavy'.
# Error: Attempt to reload Test/Dependencies/Heavy.pm aborted.
# Compilation failed in require at t/00-load-basic.t line 7.
# BEGIN failed--compilation aborted at t/00-load-basic.t line 7.
# Looks like you failed 1 test of 3.
t/00-load-basic.t ............
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
t/01-load-with-exclude.t ..... ok
Undefined subroutine &Test::Dependencies::get_modules_used_in_file called at /tmp/loop_over_bdir-1626-03HbfT/Test-Dependencies-0.20-0/blib/lib/Test/Dependencies.pm line 136.
# Looks like your test exited with 255 just after 1.
t/02-dependencies-default.t ..
Dubious, test returned 255 (wstat 65280, 0xff00)
All 1 subtests passed
Plan already set, no_plan() is a no-op, this will change to a hard failure in the future. at /home/sand/src/perl/repoperls/installed-perls/perl/v5.20.2/f7bf/lib/site_perl/5.20.2/Test/Builder.pm line 487.
t/03-empty.t ................. ok
t/04-dependencies-light.t .... ok
Undefined subroutine &Test::Dependencies::get_modules_used_in_file called at /tmp/loop_over_bdir-1626-03HbfT/Test-Dependencies-0.20-0/blib/lib/Test/Dependencies.pm line 136.
# Looks like your test exited with 255 just after 1.
t/05-dependencies-heavy.t ....
Dubious, test returned 255 (wstat 65280, 0xff00)
All 1 subtests passed
# Failed test 'Pod coverage on Test::Dependencies::Heavy'
# at /home/sand/src/perl/repoperls/installed-perls/perl/v5.20.2/f7bf/lib/site_perl/5.20.2/Test/Pod/Coverage.pm line 133.
# Test::Dependencies::Heavy: requiring 'Test::Dependencies::Heavy' failed
# Looks like you failed 1 test of 3.
t/pod-coverage.t .............
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
t/pod.t ...................... ok
This demonstrates it:
$ prove -l
t/00-load-basic.t ............ ok
t/01-load-with-exclude.t ..... ok
t/02-dependencies-default.t .. ok
t/03-empty.t ................. Plan already set, no_plan() is a no-op
t/03-empty.t ................. ok
t/04-dependencies-light.t .... ok
t/05-dependencies-heavy.t .... ok
t/boilerplate.t .............. ok
t/pod-coverage.t ............. ok
t/pod.t ...................... ok
All tests successful.
There's also a warning about this becoming a hard failure in the (near?) future.
Ugh.
_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load-basic.t ............ 1/? The plan was already output at /usr/lib64/perl5/5.24.0/Test/Builder.pm line 2510.
t/00-load-basic.t ............ All 3 subtests passed
Transposing these use_ok
lines with require_ok
lines seems to be sufficient, that way it doesn't try to call ->import
( which in turn calls plan
).
Because this:
use Test::More 0.98;
use lib q[lib];
use_ok(q[Test::Dependencies]);
done_testing; # <-- calls plan ....
This might be a bug in Test::More though and I'll be following that up there. But you can still avoid this problem entirely with require_
instead of use_
Yet because we're switching to Dist::Zilla, that file not going to be available anymore.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.