Don't be dumb, auth breaks on new cat, not other way round
[catagits/Catalyst-Runtime.git] / t / aggregate.t
index 9b31a52..6722046 100644 (file)
@@ -6,10 +6,15 @@ 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',
+    (@ARGV ? (tests => \@ARGV) : (dirs => 't/aggregate')),
     verbose       => 0,
     set_filenames => 1,
     findbin       => 1,