Test::Harness::FileFilter - Run only tests whose filename matches a pattern.
Version 0.01
When using Test::Harness::FileFilter with a dist that has a standard distribution Makefile
# Enable Test::Harness::FileFilter export PERL5OPT=${PERL5OPT}:-MTest::Harness::FileFilter # Only run 00-load.t, 01-test-function.t etc.... export HARNESS_ACCEPT_FILES '^\d+(-\w+)+\.t' # Run suite make test
Test::Harness::FileFilter is an "extension" to Test::Harness that lets you selectivly accept or ignore files by matching each filename with an regular expression.
Used by perl to include extra command-line switches such as -I... or -M.... This environment variable is used to "load" Test::Harness::FileFilter. It should be set to include -MTest::Harness::FileFilter.
Sets the regexp that will be matched on all files in the set. If it matches, the file is removed from the set.
Sets the regep that will be matched on all files in the set. If it matches, the file is included in the set.
If both HARNESS_IGNORE_FILES and HARNESS_ACCEPT_FILES are defined the set will first be reduced by the "ignore"-regexp and the resulting set will be futher reduced by the "accept"-regexp.
Test::Harness::FileFilter will not work thru PERL5OPT if perl is invoked with -T (taint mode).
Claes Jacobsson, <claesjac@cpan.org>
<claesjac@cpan.org>
Please report any bugs or feature requests to bug-test-harness-filefilter@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Harness-FileFilter. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-test-harness-filefilter@rt.cpan.org
Copyright 2005 Claes Jacobsson, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html.
To install Test::Harness::FileFilter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Harness::FileFilter
CPAN shell
perl -MCPAN -e shell install Test::Harness::FileFilter
For more information on module installation, please visit the detailed CPAN module installation guide.