1Fennec::Finder(3)     User Contributed Perl Documentation    Fennec::Finder(3)
2
3
4

NAME

6       Fennec::Finder - Create one .t file to find all .pm test files.
7

DESCRIPTION

9       Originally Fennec made use of a runner loaded in t/Fennec.t that sought
10       out test files (modules) to run. This modules provides similar, but
11       greatly simplified functionality.
12

SYNOPSIS

14       Fennec.t:
15
16           #!/usr/bin/perl
17           use strict;
18           use warnings;
19
20           use Fennec::Finder;
21
22           run();
23
24       This will find all .pm and .ft files under t/ and load them. Any that
25       contain Fennec tests will register themselves to be run once run() is
26       called.
27
28       Warning, if you have .pm files in t/ that are not tests they will also
29       be loaded, if any of these have interactions with the packages you are
30       testing you must account for them.
31

CUSTOMISATIONS

33   SEARCH PATHS
34       When you "use Fennec::Finder;" the './t/' directory will be searched if
35       it exists, otherwise the './' directory will be used. You may
36       optionally provide alternate paths at use time: "use Fennec::Finder
37       './Fennec', './SomeDir';"
38
39           #!/usr/bin/perl
40           use strict;
41           use warnings;
42
43           use Fennec::Finder './Fennec', './SomeDir';
44
45           run();
46
47   FILE VALIDATION
48       If you wish to customize which files are loaded you may subclass
49       Fennec::Finder and override the "validate_file( $file )" method. This
50       method takes the filename to verify as an argument. Return true if the
51       file should be loaded, false if it should not. Currently the only check
52       is that the filename ends with a ".pm".
53

AUTHORS

55       Chad Granum exodist7@gmail.com
56
58       Copyright (C) 2013 Chad Granum
59
60       Fennec is free software; Standard perl license.
61
62       Fennec is distributed in the hope that it will be useful, but WITHOUT
63       ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
64       FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
65
66
67
68perl v5.34.0                      2021-07-22                 Fennec::Finder(3)
Impressum