Blame t/critic.t

Packit 6427f8
#!/usr/bin/perl -w
Packit 6427f8
use strict;
Packit 6427f8
use Test::More;
Packit 6427f8
use File::Spec;
Packit 6427f8
Packit 6427f8
if (not $ENV{AUTHOR_TESTING}) {
Packit 6427f8
    plan( skip_all => 'Author test.  Set $ENV{AUTHOR_TESTING} to true to run.');
Packit 6427f8
}
Packit 6427f8
Packit 6427f8
eval { require Test::Perl::Critic; };
Packit 6427f8
Packit 6427f8
if ($@) {
Packit 6427f8
    plan( skip_all => 'Test::Perl::Critic required for test.');
Packit 6427f8
}
Packit 6427f8
Packit 6427f8
Test::Perl::Critic->import();
Packit 6427f8
all_critic_ok();