PageRenderTime 9ms CodeModel.GetById 6ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/xt/98_perlcritic.t

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