/xt/98_perlcritic.t
http://github.com/http-engine/HTTP-Engine · Raku · 15 lines · 14 code · 1 blank · 0 comment · 6 complexity · 11649c0c388c120d571ef8dc6d8777bc MD5 · raw file
- use strict;
- use Test::More;
- if (! $ENV{TEST_CRITIC}) {
- plan(skip_all => "Set TEST_CRITIC environment variable to run this test");
- } else {
- eval {
- require Test::Perl::Critic;
- require Perl::Critic;
- die "oops. very old." if $Perl::Critic::VERSION < 1.082;
- Test::Perl::Critic->import( -profile => 'xt/perlcriticrc');
- };
- plan skip_all => "Test::Perl::Critic >= 1.082 is not installed." if $@;
- all_critic_ok('lib');
- }