Skip to content
Browse files

done_testing

  • Loading branch information...
1 parent b984130 commit c182157b3bf68888a3296b5cef1bd26e80d44332 @doy committed Mar 8, 2012
Showing with 11 additions and 5 deletions.
  1. +2 −1 t/detect.t
  2. +2 −1 t/eval.t
  3. +2 −1 t/html.t
  4. +3 −1 t/object.t
  5. +2 −1 t/term.t
View
3 t/detect.t
@@ -5,7 +5,6 @@ use Test::More;
BEGIN {
eval "use IO::Pty::Easy;";
plan skip_all => "IO::Pty::Easy is required for this test" if $@;
- plan tests => 2;
}
sub output_like {
@@ -35,3 +34,5 @@ output_like(<<EOF,
EOF
qr+<span style=\"color:#880\">foo</span> at -e line 7\b+,
"detection works for terminal output");
+
+done_testing;
View
3 t/eval.t
@@ -5,7 +5,6 @@ use Test::More;
BEGIN {
eval "use IO::Pty::Easy;";
plan skip_all => "IO::Pty::Easy is required for this test" if $@;
- plan tests => 2;
}
sub output_like {
@@ -38,3 +37,5 @@ output_like(<<EOF,
EOF
qr/\e\[31m\e\[31mfoo\e\[m\e\[m at -e line 3\.?\n\teval {\.\.\.} called at -e line 3\n\tmain::foo\(\) called at -e line 5\.?\n\tmain::foo\(\) called at -e line 8\n/,
"rethrowing works inside functions");
+
+done_testing;
View
3 t/html.t
@@ -5,7 +5,6 @@ use Test::More;
BEGIN {
eval "use IO::Pty::Easy;";
plan skip_all => "IO::Pty::Easy is required for this test" if $@;
- plan tests => 4;
}
sub output_like {
@@ -49,3 +48,5 @@ output_like(<<EOF,
EOF
qr+<span style=\"color:#800\">foo</span> at -e line 3\.?\n\tmain::foo\(\) called at -e line 5\n+,
"dies with a stacktrace work");
+
+done_testing;
View
4 t/object.t
@@ -1,10 +1,12 @@
#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More tests => 1;
+use Test::More;
use Carp::Always::Color;
my $err = bless({}, 'My::Error::Class');
eval { die $err };
is($@, $err, "exception objects aren't affected");
+
+done_testing;
View
3 t/term.t
@@ -5,7 +5,6 @@ use Test::More;
BEGIN {
eval "use IO::Pty::Easy;";
plan skip_all => "IO::Pty::Easy is required for this test" if $@;
- plan tests => 5;
}
sub output_like {
@@ -56,3 +55,5 @@ output_like(<<EOF,
EOF
qr/\e\[31mfoo at bar line 23\e\[m at -e line 2\b/,
"weird messages work");
+
+done_testing;

0 comments on commit c182157

Please sign in to comment.
Something went wrong with that request. Please try again.