CleanCode Perl Libraries
Multi-Lingual Library Maintainability
available: Perl not available: Java not available: JavaScript not available: Certified
Class
not available: Testable
Class
not available: Standalone
Mode
not available: Diagnostic
Enabled

NAME

libFuncTest.pl - Run regression tests on a library.

SYNOPSIS

libFuncTest.pl [ -b ] { [ =pattern ] dir }

OPTIONS

-b

Batch mode; run without stopping to notify user on each error.

-h

Option help.

-H

Long help (manual page).

pattern

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.)

dir

Any number of directories may be specified. These need to be rooted in the Perl search path (PERL5LIB).

REQUIRES

Getopt::Std, Pod::Usage, Test::Directory

DESCRIPTION

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

BUGS

None

AUTHOR

Michael Sorens

VERSION

$Revision: 228 $ $Date: 2008-03-08 18:16:03 -0800 (Sat, 08 Mar 2008) $

SINCE

CleanCode 0.9

SEE ALSO

bin::libModTest


CleanCode Perl Libraries Copyright © 2001-2013 Michael Sorens - Revised 2013.06.30 Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads