PrePAN

Sign in to PrePAN

Module::Build::Pluggable::AuthorTests Plugin to Module::Build to add author tests

Good

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

Comments

Please sign up to post a review.