CleanCode Perl Libraries |
Home | Perl | Java | PowerShell | C# | SQL | Index | Tools | Download | What's New |
Multi-Lingual Library | Maintainability | ||||||||||||
Perl | Java | JavaScript | Certified Class |
Testable Class |
Standalone Mode |
Diagnostic Enabled |
libFuncTest.pl - Run regression tests on a library.
libFuncTest.pl [ -b ] { [ =pattern ] dir }
Batch mode; run without stopping to notify user on each error.
Option help.
Long help (manual page).
Each dir may be preceded by a pattern to select a subset of files in that directory. Applies only to the immediately following dir. (These are standard regular expressions, not shell wildcards.)
Any number of directories may be specified. These need to be rooted in the Perl search path (PERL5LIB).
Getopt::Std, Pod::Usage, Test::Directory
This is a simple wrapper around the Test::Directory package, which tests Perl modules within a specified directory. Each module must be instrumented with a TEST
function that returns a testVector expected by Test::Directory
. Each module should also define a VERSION
variable which will be used in the generated report.
libFuncTest.pl allows you to specify multiple directories. Details and a summary of the test run is written to the console.
You may optionally restrict the test of a given directory by specifying a regular expression to match on file names in the directory. To do this, put a regular expression just before the directory name on the command line. That regular expression will be used only for the directory immediately following.
Note that the directory you specify should be relative to the Perl search path. So if your PERL5LIB
environment variable includes /xyz, then to test absolute path /xyz/Data/*.pm, specify just Data
on the command line.
Examples:
Command Will test
======= =========
libFuncTest.pl =Currency Util Tracking Util/Currency.pm, Tracking/*.pm
libFuncTest.pl =C.*n Util =Han Data Util/Currency.pm, Data/Handy.pm
None
Michael Sorens
$Revision: 228 $ $Date: 2008-03-08 18:16:03 -0800 (Sat, 08 Mar 2008) $
CleanCode 0.9
Home | Perl | Java | PowerShell | C# | SQL | Index | Tools | Download | What's New |
CleanCode Perl Libraries | Copyright © 2001-2013 Michael Sorens - Revised 2013.06.30 |