use strict;
use warnings;
use Test::More;
-use YAML;
use FindBin;
use lib "$FindBin::Bin/lib";
use Catalyst::Test qw(TestApp);
+eval 'use YAML';
+plan skip_all => 'YAML required' if $@;
+
plan skip_all => 'Using remote server'
if $ENV{CATALYST_SERVER};
use Test::More;
use Catalyst::Test 'TestApp';
-use YAML;
-eval "use Proc::ProcessTable";
plan skip_all => 'set TEST_MEMLEAK to enable this test'
unless $ENV{TEST_MEMLEAK};
+
+eval "use Proc::ProcessTable";
plan skip_all => 'Proc::ProcessTable required for this test' if $@;
eval "use HTTP::Body 0.03";
plan skip_all => 'HTTP::Body >= 0.03 required for this test' if $@;
+eval "use YAML";
+plan skip_all => 'YAML required for this test' if $@;
+
our $t = Proc::ProcessTable->new( cache_ttys => 1 );
our ( $initial, $final ) = ( 0, 0 );
our $tests = YAML::LoadFile("$FindBin::Bin/optional_stress.yml");
use Test::More;
use Catalyst::Test 'TestApp';
-use YAML;
our ( $iters, $tests );
plan skip_all => 'set TEST_STRESS to enable this test'
unless $ENV{TEST_STRESS};
+ eval "use YAML";
+ plan skip_all => 'YAML is required for this test' if $@;
+
$iters = $ENV{TEST_STRESS} || 10;
$tests = YAML::LoadFile("$FindBin::Bin/optional_stress.yml");