GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Module::Build::Kwalitee(3) User Contributed Perl Documentation Module::Build::Kwalitee(3)

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

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.

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/:
compile test
"use strict" test
"use warnings" tests
POD syntax & coverage tests
'use lib' test

You can get the "t/003pod.t" to report which functions are not documented by using the "SHOW_NAKED" enviromental variable

  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.
2022-04-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.