X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate.t;h=0696abb489e33cdc0d2fc52d8ddb3d2eb5b53e89;hb=refs%2Fheads%2Fno_base_component_view;hp=9b31a52b318df99cef418a6102219ddbebfd148c;hpb=ee534e6be5d846db690fd06c1ed4624716797d2d;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate.t b/t/aggregate.t index 9b31a52..0696abb 100644 --- a/t/aggregate.t +++ b/t/aggregate.t @@ -5,12 +5,25 @@ use warnings; use FindBin; use lib "$FindBin::Bin/lib"; +use File::Spec::Functions 'catfile', 'updir'; -use Test::Aggregate; +BEGIN { + unless (-e catfile $FindBin::Bin, updir, '.aggregating') { + require Test::More; + Test::More::plan(skip_all => 'No test aggregation requested'); + } +} + +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 => 0, + (@ARGV ? (tests => \@ARGV) : (dirs => 't/aggregate')), + verbose => 1, # failures only set_filenames => 1, findbin => 1, });