Dist-Zilla-BeLike-CSJEWELL

changeset 13:35f52d796bbe

Adding AuthorTest plugin.
author Curtis Jewell <csjewell@cpan.org>
date Fri Aug 13 11:16:33 2010 -0600 (2010-08-13)
parents 1fe391f06a8e
children 26ff2a3c185a
files lib/Dist/Zilla/Plugin/CSJEWELL/AuthorTest.pm
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lib/Dist/Zilla/Plugin/CSJEWELL/AuthorTest.pm	Fri Aug 13 11:16:33 2010 -0600
     1.3 @@ -0,0 +1,90 @@
     1.4 +package Dist::Zilla::Plugin::CSJEWELL::AuthorTest;
     1.5 +
     1.6 +use 5.008003;
     1.7 +use Moose;
     1.8 +use Module::Build;
     1.9 +with 'Dist::Zilla::Role::TestRunner';
    1.10 +
    1.11 +our $VERSION = '0.900';
    1.12 +$VERSION =~ s/_//sm;
    1.13 +
    1.14 +
    1.15 +sub test {
    1.16 +	my ( $self, $test_dir ) = @_;
    1.17 +
    1.18 +	# This has the same effect as
    1.19 +	#   "perl Build.PL && Build authortest",
    1.20 +	# only in code.
    1.21 +	my $builder = Module::Build->new_from_context();
    1.22 +	$builder->ACTION_authortest();
    1.23 +
    1.24 +	return 1;
    1.25 +}
    1.26 +
    1.27 +__PACKAGE__->meta()->make_immutable();
    1.28 +no Moose;
    1.29 +1;
    1.30 +
    1.31 +__END__
    1.32 +
    1.33 +=pod
    1.34 +
    1.35 +=head1 NAME
    1.36 +
    1.37 +Dist::Zilla::Plugin::CSJEWELL::AuthorTest - Let Module::Build run the author tests.
    1.38 +
    1.39 +=head1 VERSION
    1.40 +
    1.41 +This document describes Dist::Zilla::Plugin::CSJEWELL::AuthorTest version 0.900.
    1.42 +
    1.43 +=head1 DESCRIPTION
    1.44 +
    1.45 +This plugin asks Module::Build to run the tests in t/ and xt/author. 
    1.46 +
    1.47 +=for Pod::Coverage test
    1.48 +
    1.49 +=head1 AUTHOR
    1.50 +
    1.51 +Curtis Jewell <CSJewell@cpan.org>
    1.52 +
    1.53 +=head1 SEE ALSO
    1.54 +
    1.55 +L<Dist::Zilla::BeLike::CSJEWELL|Dist::Zilla::BeLike::CSJEWELL>
    1.56 +
    1.57 +=head1 LICENSE AND COPYRIGHT
    1.58 +
    1.59 +Copyright (c) 2010, Curtis Jewell C<< CSJewell@cpan.org >>.
    1.60 +
    1.61 +This module is free software; you can redistribute it and/or
    1.62 +modify it under the same terms as Perl itself, either version
    1.63 +5.8.1 or any later version. See L<perlartistic|perlartistic> 
    1.64 +and L<perlgpl|perlgpl>.
    1.65 +
    1.66 +The full text of the license can be found in the
    1.67 +LICENSE file included with this module.
    1.68 +
    1.69 +=head1 DISCLAIMER OF WARRANTY
    1.70 +
    1.71 +BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
    1.72 +FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
    1.73 +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
    1.74 +PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
    1.75 +EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1.76 +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
    1.77 +ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
    1.78 +YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
    1.79 +NECESSARY SERVICING, REPAIR, OR CORRECTION.
    1.80 +
    1.81 +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
    1.82 +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
    1.83 +REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE
    1.84 +LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
    1.85 +OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
    1.86 +THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
    1.87 +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
    1.88 +FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
    1.89 +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
    1.90 +SUCH DAMAGES.
    1.91 +
    1.92 +=cut
    1.93 +