1Test::Stream::Plugin::SUksieprWiCtohnoturti(b3u)ted PerlTeDsotc:u:mSetnrteaatmi:o:nPlugin::SkipWithout(3)
2
3
4

NAME

6       Test::Stream::Plugin::SkipWithout - Plugin to skip tests if certain
7       package requirements are not met.
8

DEPRECATED

10       This distribution is deprecated in favor of Test2, Test2::Suite, and
11       Test2::Workflow.
12
13       See Test::Stream::Manual::ToTest2 for a conversion guide.
14

DESCRIPTION

16       Sometimes you have tests that are nice to run, but depend on tools that
17       may not be available. Instead of adding the tool as a dep, or making
18       the test always skip, it is common to make the test run conditionally.
19       This package helps make that possible.
20
21       This module is modeled after Test::Requires. This module even stole
22       most of the syntax. The difference is that this module is based on
23       Test::Stream directly, and does not go through Test::Builder. Another
24       difference is that the packages you check for are not imported into
25       your namespace for you, this is intentional.
26

SYNOPSIS

28           use Test::Stream SkipWithout => [
29               'v5.10',                 # minimum perl version
30               'Necessary::Package',    # We need this, we do not care what version it is
31
32               # A hashref can be used to specify modules + minimum versions
33               {
34                   'Scalar::Util' => '1.3',    # We need at least this version of Scalar::Util
35                   'Some::Tool'   => '2.5',    # We need version 2.5 of Some::Tool
36               },
37           ];
38
39           # The tools and features are not imported for us, so we import them here.
40           # This gives us control over the import arguments as well.
41           use v5.10;
42           use Necessary::Package qw/foo bar/;
43           use Scalar::Util qw/blessed reftype/;
44           use Some::Tool qw/do_it/;
45

SOURCE

47       The source code repository for Test::Stream can be found at
48       http://github.com/Test-More/Test-Stream/.
49

MAINTAINERS

51       Chad Granum <exodist@cpan.org>
52

AUTHORS

54       Chad Granum <exodist@cpan.org>
55
57       Copyright 2015 Chad Granum <exodist7@gmail.com>.
58
59       This program is free software; you can redistribute it and/or modify it
60       under the same terms as Perl itself.
61
62       See http://dev.perl.org/licenses/
63
64
65
66perl v5.32.1                      2021-01-2T7est::Stream::Plugin::SkipWithout(3)
Impressum