Better test fail if you don't have the author deps
Tomas Doran [Tue, 4 Dec 2012 21:30:02 +0000 (21:30 +0000)]
t/author/http-server.t

index 2927f18..ead1cad 100644 (file)
@@ -9,8 +9,15 @@ use Test::TCP;
 use Try::Tiny;
 use Plack::Builder;
 
-use Catalyst::Devel 1.0;
-use File::Copy::Recursive;
+eval { require Catalyst::Devel; Catalyst::Devel->VERSION(1.0); 1; } || do {
+    fail("Could not load Catalyst::Devel: $@");
+    exit 1;
+};
+
+eval { require File::Copy::Recursive; 1 } || do {
+    fail("Could not load File::Copy::Recursive: $@");
+    exit 1;
+};
 
 # Run a single test by providing it as the first arg
 my $single_test = shift;