From: Arthur Axel 'fREW' Schmidt Date: Fri, 3 Aug 2012 01:11:59 +0000 (-0500) Subject: Switch from Test::Exception to Test::Fatal X-Git-Tag: v0.002200~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2482377b70d4cfe36925a534c60c76898878601a;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git Switch from Test::Exception to Test::Fatal --- diff --git a/Changes b/Changes index 84bc4ee..21f40a4 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ Revision history for {{$dist->name}} {{$NEXT}} - Test suite now is fully parallelizable - Switch ::ScriptHelpers to Sub::Exporter::Progressive + - Switch from Test::Exception to Test::Fatal 0.002115 2012-07-10 13:36:35 America/Chicago - Make tests use actual temp files to make certain systems stop failing tests diff --git a/dist.ini b/dist.ini index ae977ce..ece671e 100644 --- a/dist.ini +++ b/dist.ini @@ -33,7 +33,7 @@ MooseX::Role::Parameterized = 0.18 Try::Tiny = 0 SQL::Translator = 0.11005 Test::More = 0.88 -Test::Exception = 0 +Test::Fatal = 0.006 DBD::SQLite = 1.35 Carp = 0 Carp::Clan = 0 diff --git a/t/02-instantiation-no-ddl.t b/t/02-instantiation-no-ddl.t index 7dc3bc2..ff4c591 100644 --- a/t/02-instantiation-no-ddl.t +++ b/t/02-instantiation-no-ddl.t @@ -11,7 +11,7 @@ use aliased 'DBIx::Class::DeploymentHandler', 'DH'; use File::Path 'remove_tree'; use Test::More; use File::Temp 'tempdir'; -use Test::Exception; +use Test::Fatal qw(lives_ok dies_ok); use DBI; my $dbh = DBICDHTest::dbh(); diff --git a/t/02-instantiation-wo-component.t b/t/02-instantiation-wo-component.t index f36dbfd..8838b66 100644 --- a/t/02-instantiation-wo-component.t +++ b/t/02-instantiation-wo-component.t @@ -11,7 +11,7 @@ use aliased 'DBIx::Class::DeploymentHandler', 'DH'; use File::Path 'remove_tree'; use Test::More; use File::Temp 'tempdir'; -use Test::Exception; +use Test::Fatal qw(lives_ok dies_ok); my $dbh = DBICDHTest::dbh(); my @connection = (sub { $dbh }, { ignore_version => 1 }); diff --git a/t/02-instantiation.t b/t/02-instantiation.t index 7ab3f03..f5b18a5 100644 --- a/t/02-instantiation.t +++ b/t/02-instantiation.t @@ -11,7 +11,7 @@ use aliased 'DBIx::Class::DeploymentHandler', 'DH'; use File::Path 'remove_tree'; use Test::More; use File::Temp 'tempdir'; -use Test::Exception; +use Test::Fatal qw(lives_ok dies_ok); my $dbh = DBICDHTest::dbh(); my @connection = (sub { $dbh }, { ignore_version => 1 }); diff --git a/t/03-deprecated.t b/t/03-deprecated.t index 447aaf1..462f152 100644 --- a/t/03-deprecated.t +++ b/t/03-deprecated.t @@ -10,7 +10,7 @@ use aliased 'DBIx::Class::DeploymentHandler::Deprecated'; use File::Path 'remove_tree'; use Test::More; use File::Temp 'tempdir'; -use Test::Exception; +use Test::Fatal qw(lives_ok dies_ok); my $dbh = DBICDHTest::dbh(); my @connection = (sub { $dbh }, { ignore_version => 1 }); diff --git a/t/04-preconnect.t b/t/04-preconnect.t index 962b89f..860b394 100644 --- a/t/04-preconnect.t +++ b/t/04-preconnect.t @@ -11,7 +11,6 @@ use aliased 'DBIx::Class::DeploymentHandler', 'DH'; use File::Path qw(remove_tree mkpath); use Test::More; use File::Temp 'tempdir'; -use Test::Exception; my $db = 'dbi:SQLite::memory:'; my @connection = ($db, '', '', { ignore_version => 1, on_connect_do => sub { die }}); diff --git a/t/bugs/01-emailed-bug-01.t b/t/bugs/01-emailed-bug-01.t index 191a583..a4e25c3 100644 --- a/t/bugs/01-emailed-bug-01.t +++ b/t/bugs/01-emailed-bug-01.t @@ -11,7 +11,7 @@ use aliased 'DBIx::Class::DeploymentHandler', 'DH'; use File::Path 'remove_tree'; use Test::More; use File::Temp 'tempdir'; -use Test::Exception; +use Test::Fatal qw(lives_ok dies_ok); my $dbh = DBICDHTest::dbh(); my @connection = (sub { $dbh }, { ignore_version => 1 }); diff --git a/t/deploy_methods/coderef-leakage.t b/t/deploy_methods/coderef-leakage.t index 3eb32c2..f888ec1 100644 --- a/t/deploy_methods/coderef-leakage.t +++ b/t/deploy_methods/coderef-leakage.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal qw(lives_ok dies_ok); use aliased 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator'; use File::Temp 'tempdir'; diff --git a/t/deploy_methods/sql_translator.t b/t/deploy_methods/sql_translator.t index d160ede..dc2bf18 100644 --- a/t/deploy_methods/sql_translator.t +++ b/t/deploy_methods/sql_translator.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal qw(lives_ok dies_ok); use lib 't/lib'; use DBICDHTest; diff --git a/t/deploy_methods/sql_translator_deprecated.t b/t/deploy_methods/sql_translator_deprecated.t index cd2612c..4e039a8 100644 --- a/t/deploy_methods/sql_translator_deprecated.t +++ b/t/deploy_methods/sql_translator_deprecated.t @@ -1,7 +1,7 @@ #!perl use Test::More; -use Test::Exception; +use Test::Fatal qw(lives_ok dies_ok); use lib 't/lib'; use DBICDHTest; diff --git a/t/deploy_methods/sql_translator_protoschema_transform.t b/t/deploy_methods/sql_translator_protoschema_transform.t index b9164a7..c91f415 100644 --- a/t/deploy_methods/sql_translator_protoschema_transform.t +++ b/t/deploy_methods/sql_translator_protoschema_transform.t @@ -4,7 +4,6 @@ use strict; use warnings; use Test::More; -use Test::Exception; use lib 't/lib'; use DBICDHTest; diff --git a/t/no-component-lib/DBICDHTest.pm b/t/no-component-lib/DBICDHTest.pm index 789e3e3..f833c69 100644 --- a/t/no-component-lib/DBICDHTest.pm +++ b/t/no-component-lib/DBICDHTest.pm @@ -5,7 +5,6 @@ use warnings; use File::Path 'remove_tree'; use Test::More; -use Test::Exception; sub ready { if (-d 't/sql') { diff --git a/t/version_handlers/db_schema_versions.t b/t/version_handlers/db_schema_versions.t index 0bc25ad..ccf54b6 100644 --- a/t/version_handlers/db_schema_versions.t +++ b/t/version_handlers/db_schema_versions.t @@ -4,7 +4,6 @@ use strict; use warnings; use Test::More; -use Test::Exception; use lib 't/lib'; use aliased diff --git a/t/version_handlers/explict_versions.t b/t/version_handlers/explict_versions.t index 07ad3dd..caa2d94 100644 --- a/t/version_handlers/explict_versions.t +++ b/t/version_handlers/explict_versions.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal qw(lives_ok dies_ok); use lib 't/lib'; use aliased diff --git a/t/version_handlers/monotonic.t b/t/version_handlers/monotonic.t index c0d1f2f..f78f05a 100644 --- a/t/version_handlers/monotonic.t +++ b/t/version_handlers/monotonic.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal qw(lives_ok dies_ok); use lib 't/lib'; use aliased diff --git a/t/version_storages/standard.t b/t/version_storages/standard.t index 2d049a5..d49b5de 100644 --- a/t/version_storages/standard.t +++ b/t/version_storages/standard.t @@ -4,7 +4,6 @@ use strict; use warnings; use Test::More; -use Test::Exception; use lib 't/lib'; use DBICDHTest;