Module::Install::TestBase - Module::Install Support for Test::Base


Test-Base documentation Contained in the Test-Base distribution.

Index


Code Index:

NAME

Top

Module::Install::TestBase - Module::Install Support for Test::Base

SYNOPSIS

Top

    use inc::Module::Install;

    name            'Foo';
    all_from        'lib/Foo.pm';

    use_test_base;

    WriteAll;

DESCRIPTION

Top

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.

AUTHOR

Top

Ingy döt Net <ingy@cpan.org>

COPYRIGHT

Top


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;