[Catalyst-commits] r8351 - in
Catalyst-Runtime/5.80/branches/test_aggregate: . t
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Thu Sep 4 09:15:54 BST 2008
Author: rafl
Date: 2008-09-04 09:15:54 +0100 (Thu, 04 Sep 2008)
New Revision: 8351
Added:
Catalyst-Runtime/5.80/branches/test_aggregate/t/aggregate.t
Modified:
Catalyst-Runtime/5.80/branches/test_aggregate/Makefile.PL
Log:
Optionally aggreagate tests.
Modified: Catalyst-Runtime/5.80/branches/test_aggregate/Makefile.PL
===================================================================
--- Catalyst-Runtime/5.80/branches/test_aggregate/Makefile.PL 2008-09-04 08:15:44 UTC (rev 8350)
+++ Catalyst-Runtime/5.80/branches/test_aggregate/Makefile.PL 2008-09-04 08:15:54 UTC (rev 8351)
@@ -33,7 +33,12 @@
requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
requires 'MRO::Compat';
-tests 't/*.t t/aggregate/*.t';
+if ( ( exists $ENV{AGGREGATE_TESTS} && !$ENV{AGGREGATE_TESTS})
+ || (!exists $ENV{AGGREGATE_TESTS} && !can_use('Test::Aggregate'))) {
+ tests join q{ },
+ grep { $_ ne 't/aggregate.t' }
+ map { glob } qw[t/*.t t/aggregate/*.t];
+}
if (-e 'inc/.author') {
build_requires 'Test::NoTabs';
Added: Catalyst-Runtime/5.80/branches/test_aggregate/t/aggregate.t
===================================================================
--- Catalyst-Runtime/5.80/branches/test_aggregate/t/aggregate.t (rev 0)
+++ Catalyst-Runtime/5.80/branches/test_aggregate/t/aggregate.t 2008-09-04 08:15:54 UTC (rev 8351)
@@ -0,0 +1,17 @@
+#!perl
+
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/lib";
+
+use Test::Aggregate;
+
+my $tests = Test::Aggregate->new({
+ dirs => 't/aggregate',
+ verbose => 1,
+ set_filenames => 1,
+});
+
+$tests->run;
More information about the Catalyst-commits
mailing list