Skip tests when java isn't installed/runable (IPC::Cmd)
[catagits/Test-WWW-Selenium-Catalyst.git] / Makefile.PL
index be8095f..48d5d60 100644 (file)
@@ -14,10 +14,6 @@ requires(
         'Catalyst::Utils' => 0,
 );
 
-# Old vers of CPAN dont set the env var. safer to assume we are running than
-# ask about deps twice
-my $under_cpan = $ENV{PERL5_CPANPLUS_IS_RUNNING} || 
-                 $ENV{PERL5_CPAN_IS_RUNNING} || 
-                 do { require CPAN; $CPAN::VERSION < 1.92 };
-$under_cpan or auto_install();
+test_requires 'IPC::Cmd' => '0.42';
+
 WriteAll();