Update tests to use maybe_plan.
[dbsrgits/SQL-Translator.git] / t / 23xml-xmi-parser-rational.t
index f1adb59..688b97a 100644 (file)
@@ -15,9 +15,16 @@ use constant DEBUG => (exists $opt{d} ? 1 : 0);
 
 use Test::More;
 use Test::Exception;
+use Test::SQL::Translator qw(maybe_plan);
 use SQL::Translator;
 use SQL::Translator::Schema::Constants;
 
+BEGIN {
+    maybe_plan(92,
+        'SQL::Translator::Parser::XML::XMI::Rational',
+        'SQL::Translator::Producer::MySQL');
+}
+
 # Usefull test subs for the schema objs
 #=============================================================================
 
@@ -128,8 +135,6 @@ sub test_table {
 # Testing 1,2,3,..
 #=============================================================================
 
-plan tests => 92;
-
 my $testschema = "$Bin/data/xmi/OrderDB.rationalprofile.poseidon2.xmi";
 die "Can't find test schema $testschema" unless -e $testschema;