changes from jrockway with some additional docs
[gitmo/MooseX-Types-Path-Class.git] / t / perlcritic.t
CommitLineData
fd56ddb6 1#!perl
2
a5bbbab1 3use warnings FATAL => 'all';
4use strict;
5use File::Spec;
fd56ddb6 6use Test::More;
a5bbbab1 7
8if ( not $ENV{TEST_AUTHOR} ) {
9 my $msg
10 = 'Author test. Set $ENV{TEST_AUTHOR} to a true value to run.';
11 plan( skip_all => $msg );
fd56ddb6 12}
13
a5bbbab1 14eval { require Test::Perl::Critic; };
2b21d04e 15if ($@) {
a5bbbab1 16 my $msg = 'Test::Perl::Critic required to criticise code';
17 plan( skip_all => $msg );
18}
19
20#my $rcfile = File::Spec->catfile( 't', 'perlcriticrc' );
21#Test::Perl::Critic->import( -profile => $rcfile );
22#all_critic_ok();
fd56ddb6 23Test::Perl::Critic::all_critic_ok();
a5bbbab1 24