Module::Build::Pluggable::AuthorTest - Plugin to Module::Build to add author tests
version 0.01
# Build.PL use strict; use warnings; use Module::Build::Pluggable qw[ AuthorTests ]; my $builder = Module::Build::Pluggable->new( ... ); $builder->create_build_script();
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.
test_dirs
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
http://elliotlovesperl.com/2009/11/24/explicitly-running-author-tests/
which is where the idea and code comes from.
Diab Jerius <djeriuss@cpan.org>
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.
To install Module::Build::Pluggable::AuthorTests, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Build::Pluggable::AuthorTests
CPAN shell
perl -MCPAN -e shell install Module::Build::Pluggable::AuthorTests
For more information on module installation, please visit the detailed CPAN module installation guide.