Don't be dumb, auth breaks on new cat, not other way round
[catagits/Catalyst-Runtime.git] / t / aggregate.t
index fc10888..6722046 100644 (file)
@@ -6,12 +6,18 @@ use warnings;
 use FindBin;
 use lib "$FindBin::Bin/lib";
 
-use Test::Aggregate;
+BEGIN {
+    unless (eval { require Test::Aggregate; Test::Aggregate->VERSION('0.364'); 1 }) {
+        require Test::More;
+        Test::More::plan(skip_all => 'Test::Aggregate 0.364 required for test aggregation');
+    }
+}
 
 my $tests = Test::Aggregate->new({
-    dirs          => 't/aggregate',
-    verbose       => 1,
+    (@ARGV ? (tests => \@ARGV) : (dirs => 't/aggregate')),
+    verbose       => 0,
     set_filenames => 1,
+    findbin       => 1,
 });
 
 $tests->run;