NAME

Module::Build::Pluggable::AuthorTest - Plugin to Module::Build to add author tests

VERSION

version 0.01

SYNOPSIS

# Build.PL
use strict;
use warnings;
use Module::Build::Pluggable qw[ AuthorTests ];

my $builder = Module::Build::Pluggable->new(
    ...
);
$builder->create_build_script();

DESCRIPTION

This Module::Build::Pluggable plugin adds an authortest action which recursively runs tests in both the normal test directory t, as well as in author-only test directories (by default xt ).

To specify alternate author-only test directories, pass the test_dirs option when loading the module, e.g.

use Module::Build::Pluggable ( AuthorTests =>
                                { test_dirs => 'xtt' } );

test_dirs will accept either a scalar or an array of directories.

To run the tests,

./Build authortest

SEE ALSO

http://elliotlovesperl.com/2009/11/24/explicitly-running-author-tests/

which is where the idea and code comes from.

AUTHOR

Diab Jerius <djeriuss@cpan.org>

COPYRIGHT AND LICENSE

Copyright (c) 2016 The Smithsonian Astrophysical Observatory

Copyright (c) 2016 Diab Jerius

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.