/
View dependency graph
Depends on
- perl (perl)
- debhelper-compat
Used by
- carton 1.0.35-1
- cpan-listchanges 0.08-2
- libapache-logformat-compiler-perl 0.36-3
- libapp-termcast-perl 0.13-4
- libattean-perl 0.035-1
- libbread-board-perl 0.37-3
- libcache-lru-perl 0.04-4
- libcatalyst-action-rest-perl 1.22-1
- libcatalyst-model-dbic-schema-perl 0.66-1
- libcatalyst-view-email-perl 0.36-4
- libcgi-application-perl 4.61+~1.21+~1.00+~1.01-1
- libcgi-compile-perl 0.27-1
- libcgi-emulate-psgi-perl 0.23-2
- libclass-refresh-perl 0.07-2
- libclass-tiny-antlers-perl 0.024-3
- libclass-unload-perl 0.12-1
- libcourriel-perl 0.49-1
- libcrypt-dh-gmp-perl 0.00012-2
- libcwd-guard-perl 0.05-4
- libdancer-perl 1.3522-2
Show 68 more
- libdancer-plugin-dbic-perl 0.2104-5
- libdancer-session-cookie-perl 0.30-4
- libdata-clone-perl 0.006-1
- libdata-messagepack-perl 1.02-3
- libdata-section-simple-perl 0.07-4
- libdata-stream-bulk-perl 0.11-2
- libdata-validate-ip-perl 0.31-1
- libdata-visitor-perl 0.32-1
- libdatetime-timezone-perl 1:2.69-1+2026c
- libdbicx-sugar-perl 0.0200-4
- libdbix-class-deploymenthandler-perl 0.002235-1
- libdevel-declare-perl 0.006022-1
- libdist-zilla-plugin-checkbin-perl 0.008-2
- libdist-zilla-plugin-checkextratests-perl 0.029-3
- libdist-zilla-plugin-test-notabs-perl 0.15-4
- libeval-closure-perl 0.14-3
- libexporter-tiny-perl 1.006003-1
- libfile-changenotify-perl 0.31-2
- libfurl-perl 3.15-1
- libgraphics-tiff-perl 21-1
- libhtml-escape-perl 1.11-1
- libhtml-html5-parser-perl 0.992-2
- libhttp-cookiejar-perl 0.014-2
- libhttp-headers-fast-perl 0.22-3
- libjson-webtoken-perl 0.10-5
- libkiokudb-backend-dbi-perl 1.23-3
- liblexical-accessor-perl 1.001002-1
- liblog-dispatch-perl 2.71-1
- liblwp-protocol-psgi-perl 0.11-2
- libmagpie-perl 1.163200-5
- libmarkdent-perl 0.40-2
- libmaxmind-db-reader-perl 1.000014-2
- libmaxmind-db-reader-xs-perl 1.000009-2
- libmaxmind-db-writer-perl 0.300004-1
- libmodule-build-pluggable-cpanfile-perl 0.05-2
- libmodule-build-pluggable-ppport-perl 0.04-1.1
- libmodule-implementation-perl 0.09-2
- libobject-container-perl 0.16-1
- libparallel-prefork-perl 0.18-1
- libparams-validate-perl 1.31-2
- libplack-app-proxy-perl 0.29-2
- libplack-handler-anyevent-fcgi-perl 0.01-2
- libplack-handler-fcgi-ev-perl 0.01-1.1
- libplack-middleware-debug-perl 0.18+dfsg-2
- libplack-middleware-deflater-perl 0.14-1
- libplack-middleware-file-sass-perl 0.03-7
- libplack-middleware-session-perl 0.36-1
- libplack-perl 1.0054-1
- libplack-test-agent-perl 1.6-1
- libproc-guard-perl 0.07-3
- librole-hooks-perl 0.008-2
- libscalar-does-perl 0.203-4
- libtest-cleannamespaces-perl 0.24-1
- libtest-deep-type-perl 0.008-2
- libtest-mocktime-hires-perl 0.08-2
- libtest-sharedfork-perl 0.35-3
- libtest-tempdir-perl 0.11-2
- libtext-mecab-perl 0.20016-5
- libtext-xslate-perl 3.5.9-2
- libtime-moment-perl 0.46-1
- libtype-tiny-perl 2.010001-1
- libtypes-uri-perl 0.007-4
- libtypes-xsd-lite-perl 0.007-1
- liburi-namespacemap-perl 1.12-1
- libweb-scraper-perl 0.38-2
- libxml-parser-lite-perl 0.722-1
- minilla 3.1.29-1
- libimage-sane-perl 5-3
README (full)
NAME
Test::Requires - Checks to see if the module can be loaded
SYNOPSIS
# in your Makefile.PL
use inc::Module::Install;
test_requires 'Test::Requires';
# in your test
use Test::More tests => 10;
use Test::Requires {
'HTTP::MobileAttribute' => 0.01, # skip all if HTTP::MobileAttribute doesn't installed
};
isa_ok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';
# or
use Test::More tests => 10;
use Test::Requires qw(
HTTP::MobileAttribute
);
isa_ok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';
# or
use Test::More tests => 10;
use Test::Requires;
test_requires 'Some::Optional::Test::Required::Modules';
isa_ok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';
DESCRIPTION
Test::Requires checks to see if the module can be loaded.
If this fails rather than failing tests this skips all tests.
Test::Requires can also be used to require a minimum version of Perl:
use Test::Requires "5.010"; # quoting is necessary!!
# or
use Test::Requires "v5.10";
AUTHOR
Tokuhiro Matsuno <tokuhirom @*(#RJKLFHFSDLJF gmail.com>
THANKS TO
kazuho++ # some tricky stuff
miyagawa++ # original code from t/TestPlagger.pm
tomyhero++ # reported issue related older test::builder
tobyink++ # documented that Test::Requires "5.010" works
ENVIRONMENT
If the RELEASE_TESTING environment variable is true, then instead
of skipping tests, Test::Requires bails out.
SEE ALSO
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| dir | debian/ |
| dir | lib/ |
| dir | t/ |
| dir | xt/ |
| file | Changes |
| file | LICENSE |
| file | MANIFEST |
| file | META.json |
| file | META.yml |
| file | Makefile.PL |
| file | README.md |
| file | cpanfile |
| file | minil.toml |