Module::Build::Kwalitee - Module::Build subclass with prepackaged tests
This module requires this bit of magic in your Build.PL:
use lib 'mbk'; use Module::Build::Kwalitee; Module::Build::Kwalitee->new( module_name => 'Foo::Bar', ..., }, )->create_build_script();
Module::Build::Kwalitee subclasses Module::Build to provide boilerplate tests for your project. It does this by overriding new() and copying tests to your t directory when you run 'perl Build.PL'.
new()
Module::Build::Kwalitee gets over the bootstrapping problem by overriding Module::Build's distdir target, adding a "mbk" directory to your distribution containing a small stub Module::Build::Kwalitee which just overrides Module::Build's build_requires() method to add the dependencies of its tests.
distdir
Module::Build::Kwalitee tests are not automatically added to MANIFEST so if you want them shipped with your distribution you will have to do this manually.
Several boilerplate tests are added to t/:
use strict
use warnings
You can get the t/003pod.t to report which functions are not documented by using the SHOW_NAKED enviromental variable
t/003pod.t
SHOW_NAKED
bash$ SHOW_NAKED=1 perl -Ilib t/003compile.t
Module::Build
Stig Brautaset <stig@brautaset.org>, Mark Fowler <mark@twoshortplanks.com>, Norman Nunley <nnunley@fotango.com>, Chia-liang Kao <clkao@clkao.org>, et al.
To install Module::Build::Kwalitee, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Build::Kwalitee
CPAN shell
perl -MCPAN -e shell install Module::Build::Kwalitee
For more information on module installation, please visit the detailed CPAN module installation guide.