|
NAMETest::Distribution - perform tests on all modules of a distributionSYNOPSIS$ cat t/01distribution.t use Test::More; BEGIN { eval { require Test::Distribution; }; if($@) { plan skip_all => 'Test::Distribution not installed'; } else { import Test::Distribution; } } $ make test ... DESCRIPTIONWhen using this module in a test script, it goes through all the modules in your distribution, checks their POD, checks that they compile ok and checks that they all define a $VERSION.This module also performs a numer of test on the distribution itself. It checks that your files match your SIGNATURE file if you have one. It checks that your distribution isn't missing certain 'core' description files. It checks to see you havent' missed out listing any pre-requisites in Makefile.PL. It defines its own testing plan, so you usually don't use it in conjunction with other "Test::*" modules in the same file. It's recommended that you just create a one-line test script as shown in the SYNOPSIS above. However, there are options... NOTE If you do not specify any options Test::Distribution will run all test types except signature testing which must always be explicitly switched on. In the future I may change the default to run no tests at all as this sounds safer. Mail me if you disagree. OPTIONSOn the line in which you "use()" this module, you can specify named arguments that influence the testing behavior.
TEST TYPESHere is a description of the types of tests available.
EXPOSED INTERNALSThere are a few subroutines to help you see what this module is doing. Note that these subroutines are neither exported nor exportable, so you have to call them fully qualified.
INSTALLATIONThis module uses Module::Build for its installation. To install this module type the following:perl Build.PL ./Build ./Build test ./Build install If you do not have Module::Build type: perl Makefile.PL to fetch it. Or use CPAN or CPANPLUS and fetch it "manually". DEPENDENCIESThis module requires these other modules and libraries:File::Basename File::Find::Rule File::Spec Test::More This module has these optional dependencies: Module::CoreList Test::Pod Test::Pod::Coverage If "Module::CoreList" is missing, the "prereq" tests are skipped. If "Test::Pod" is missing, the "pod" tests are skipped. TODOJust because these items are in the todo list, does not mean they will actually be done. If you think one of these would be helpful say so - and it will then move up on my priority list.
FEATURE IDEAS
Let me know what you think of these ideas. Are they necessary? Unnecessary? Do you have feature requests of your own? BUGSTo report a bug or request an enhancement use CPAN's excellent Request Tracker.SOURCE AVAILABILITYThis source is part of a SourceForge project which always has the latest sources in svn.http://sourceforge.net/projects/sagar-r-shah/ AUTHORSMarcel Gruenauer <marcel@cpan.org>Sagar R. Shah OTHER CREDITSThis module was inspired by a use.perl.org journal entry by "brian d foy" (see <http://use.perl.org/~brian_d_foy/journal/7463>) where he describes an idea by Andy Lester.COPYRIGHT & LICENSECopyright 2002-2003 Marcel Gruenauer. All rights reserved.Copyright 2003-2007, Sagar R. Shah, All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOperl(1), ExtUtils::Manifest(3pm), File::Find::Rule(3pm), Module::CoreList(3pm), Test::More(3pm), Test::Pod(3pm), Test::Pod::Coverage(3pm), Test::Signature(3pm).
Visit the GSP FreeBSD Man Page Interface. |