From: Florian Ragwitz Date: Wed, 22 Apr 2009 16:41:02 +0000 (+0000) Subject: Turn of test aggregation by default. X-Git-Tag: 5.80003~42 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=e262f38e836d25556557fad4e79404b41a7e2469;hp=03f7a71b9b8c26e21e0e5146759e11f9e857c224 Turn of test aggregation by default. Only aggregate if the TEST_AGGREGATE environment variable is set and a recent Test::Aggregate is available. --- diff --git a/Changes b/Changes index 70eb6c8..85b6365 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ # This file documents the revision history for Perl extension Catalyst. + - Turn of test aggregation by default. Only aggregate if the + AGGREGATE_TESTS environment variable is set and a recent + Test::Aggregate is available. (rafl) + 5.80002 2009-04-22 01:28:36 - Fix CATALYST_DEBUG and MYAPP_DEBUG environment variables turning debuging on if defined, rather than if set. diff --git a/Makefile.PL b/Makefile.PL index c0a1454..b564d98 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -40,17 +40,16 @@ recommends 'B::Hooks::OP::Check::StashChange'; test_requires 'Class::Data::Inheritable'; test_requires 'Test::MockObject'; -# Run aggregate tests if AGGREGATE_TESTS environment = 1, but not if it = 0 -# Otherwise default to using Test::Aggregate if installed, but not requiring it. -if ( ( exists $ENV{AGGREGATE_TESTS} && !$ENV{AGGREGATE_TESTS}) - || (!exists $ENV{AGGREGATE_TESTS} && !can_use('Test::Aggregate', '0.34_01'))) { +# aggregate tests if AGGREGATE_TESTS is set and a recent Test::Aggregate is available +if ($ENV{AGGREGATE_TESTS} && can_use('Test::Aggregate', '0.34_01')) { + test_requires('Test::Aggregate', '0.34_01'); +} +else { tests join q{ }, grep { $_ ne 't/aggregate.t' } map { glob } qw[t/*.t t/aggregate/*.t]; } -else { - test_requires('Test::Aggregate', '0.34_01'); -} + my @force_build_requires_if_author = qw( Test::NoTabs Test::Pod