1Test::LoadAllModules(3)User Contributed Perl DocumentatioTnest::LoadAllModules(3)
2
3
4

NAME

6       Test::LoadAllModules - do use_ok for modules in search path
7

SYNOPSIS

9         # basic
10         use Test::LoadAllModules;
11
12         BEGIN {
13             all_uses_ok(search_path => 'MyApp');
14         }
15
16         # exclude some classes
17         use Test::LoadAllModules;
18
19         BEGIN {
20             all_uses_ok(
21                 search_path => 'MyApp',
22                 except => [
23                     'MyApp::Role',
24                     qr/MyApp::Exclude::.*/,
25                 ]
26             );
27         }
28
29         # set @INC with lib parm
30         use Test::LoadAllModules;
31
32         BEGIN {
33             all_uses_ok(
34                 search_path => 'MyApp',
35                 lib => [
36                     'lib',
37                     't/lib',
38                 ]
39             );
40         }
41

DESCRIPTION

43       Test::LoadAllModules do use_ok for modules in search_path.
44

EXPORTED FUNCTIONS

46   all_uses_ok
47       Does Test::More's use_ok() for every modules found in search path.
48

AUTHOR

50       Takatoshi Kitano <kitano.tk@gmail.com>
51

SEE ALSO

53       Test::More
54

LICENSE

56       This library is free software; you can redistribute it and/or modify it
57       under the same terms as Perl itself.
58
59
60
61perl v5.36.0                      2023-01-20           Test::LoadAllModules(3)
Impressum