| Test-Base documentation | Contained in the Test-Base distribution. |
Module::Install::TestBase - Module::Install Support for Test::Base
use inc::Module::Install;
name 'Foo';
all_from 'lib/Foo.pm';
use_test_base;
WriteAll;
This module adds the use_test_base directive to Module::Install.
Now you can get full Test-Base support for you module with no external dependency on Test::Base.
Just add this line to your Makefile.PL:
use_test_base;
That's it. Really. Now Test::Base is bundled into your module, so that it is no longer any burden on the person installing your module.
Ingy döt Net <ingy@cpan.org>
Copyright (c) 2006, 2008, 2011. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Test-Base documentation | Contained in the Test-Base distribution. |
package Module::Install::TestBase; use strict; use warnings; use Module::Install::Base; use vars qw($VERSION @ISA); BEGIN { $VERSION = '0.60'; @ISA = 'Module::Install::Base'; } sub use_test_base { my $self = shift; $self->include('Test::Base'); $self->include('Test::Base::Filter'); $self->include('Spiffy'); $self->include('Test::More'); $self->include('Test::Builder'); $self->include('Test::Builder::Module'); $self->requires('Filter::Util::Call'); } 1;