From: Dave Rolsky Date: Wed, 20 Jan 2010 21:51:23 +0000 (-0600) Subject: switch all tests to done_testing X-Git-Tag: 0.11~29 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ee29de7b83532784ecf67a6a72579f49855b281e;p=gitmo%2FMooseX-ClassAttribute.git switch all tests to done_testing --- diff --git a/t/03-introspection.t b/t/03-introspection.t index 8c340d3..3c3ac02 100644 --- a/t/03-introspection.t +++ b/t/03-introspection.t @@ -3,7 +3,7 @@ use warnings; use lib 't/lib'; -use Test::More tests => 14; +use Test::More; # We just want the class definitions in here. use SharedTests; @@ -103,3 +103,5 @@ ok( !Child->meta()->has_class_attribute_value('YetAnotherAttribute'), 'Child does not have a class attribute value for YetAnotherAttribute' ); + +done_testing(); diff --git a/t/04-with-native-traits.t b/t/04-with-native-traits.t index 169cd95..9984e25 100644 --- a/t/04-with-native-traits.t +++ b/t/04-with-native-traits.t @@ -1,7 +1,7 @@ use strict; use warnings; -use Test::More tests => 2; +use Test::More; { package MyClass; @@ -21,3 +21,5 @@ is( MyClass->counter(), 0 ); MyClass->inc_counter(); is( MyClass->counter(), 1 ); + +done_testing(); diff --git a/t/lib/SharedTests.pm b/t/lib/SharedTests.pm index 3c83bee..efedc60 100644 --- a/t/lib/SharedTests.pm +++ b/t/lib/SharedTests.pm @@ -160,8 +160,6 @@ use Test::More; } sub run_tests { - plan tests => 30; - local $Test::Builder::Level = $Test::Builder::Level + 1; { @@ -342,6 +340,8 @@ sub run_tests { 'trigger passes old value correctly' ); } + + done_testing(); } 1;