X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=1.26%2Ft%2Fauthor-critic.t;fp=1.26%2Ft%2Fauthor-critic.t;h=af7f7ea243717699f778c0c0a79c393518052b4e;hb=982e2bb08f00d800e2cd9fb65b108231719c8a65;hp=0000000000000000000000000000000000000000;hpb=6116bc7efd7446d3ff910328a74c8e8aa9093c47;p=deb_pkgs%2Flibhtml-calendarmonth-perl.git diff --git a/1.26/t/author-critic.t b/1.26/t/author-critic.t new file mode 100644 index 0000000..af7f7ea --- /dev/null +++ b/1.26/t/author-critic.t @@ -0,0 +1,20 @@ +#!perl + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for testing by the author'); + } +} + + +use strict; +use warnings; + +use Test::More; +use English qw(-no_match_vars); + +eval "use Test::Perl::Critic"; +plan skip_all => 'Test::Perl::Critic required to criticise code' if $@; +Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc"; +all_critic_ok();