t/04-critic.t
raw| 1 | #!/usr/bin/perl -w |
| 2 | use strict; |
| 3 | use Test::More; |
| 4 | use File::Spec; |
| 5 | |
| 6 | if (not $ENV{TEST_AUTHOR}) { |
| 7 | plan( skip_all => 'Author test. Set $ENV{TEST_AUTHOR} to true to run.'); |
| 8 | } |
| 9 | |
| 10 | eval { require Test::Perl::Critic; }; |
| 11 | |
| 12 | if ($@) { |
| 13 | plan( skip_all => 'Test::Perl::Critic required for test.'); |
| 14 | } |
| 15 | |
| 16 | Test::Perl::Critic->import(); |
| 17 | all_critic_ok(); |