From: Peter Rabbitson Date: Tue, 9 Nov 2010 11:14:34 +0000 (+0100) Subject: Disable dbic-tests when no dbic is present X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aa2ae81e003080556f5658810efc7fd9316c2f86;p=scpubgit%2FQ-Branch.git Disable dbic-tests when no dbic is present --- diff --git a/t/dbic/bulk-insert.t b/t/dbic/bulk-insert.t index f445ef1..8f49883 100644 --- a/t/dbic/bulk-insert.t +++ b/t/dbic/bulk-insert.t @@ -2,6 +2,13 @@ use strict; use warnings; use Test::More; + +BEGIN { + # ask for a recent DBIC version to skip the 5.6.2 tests as well + plan skip_all => 'Test temporarily requires DBIx::Class' + unless eval { require DBIx::Class::Storage::Statistics; DBIx::Class->VERSION('0.08124') }; +} + use DBIx::Class::Storage::Debug::PrettyPrint; my $cap; diff --git a/t/dbic/no-repeats.t b/t/dbic/no-repeats.t index 29842f0..71273f9 100644 --- a/t/dbic/no-repeats.t +++ b/t/dbic/no-repeats.t @@ -2,6 +2,13 @@ use strict; use warnings; use Test::More; + +BEGIN { + # ask for a recent DBIC version to skip the 5.6.2 tests as well + plan skip_all => 'Test temporarily requires DBIx::Class' + unless eval { require DBIx::Class::Storage::Statistics; DBIx::Class->VERSION('0.08124') }; +} + use DBIx::Class::Storage::Debug::PrettyPrint; my $cap; diff --git a/t/dbic/show-progress.t b/t/dbic/show-progress.t index 672d635..9afc3b2 100644 --- a/t/dbic/show-progress.t +++ b/t/dbic/show-progress.t @@ -2,6 +2,13 @@ use strict; use warnings; use Test::More; + +BEGIN { + # ask for a recent DBIC version to skip the 5.6.2 tests as well + plan skip_all => 'Test temporarily requires DBIx::Class' + unless eval { require DBIx::Class::Storage::Statistics; DBIx::Class->VERSION('0.08124') }; +} + use DBIx::Class::Storage::Debug::PrettyPrint; my $cap;