Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from skington/master

Documentation tweak
  • Loading branch information...
commit 424619b4241815e07dcc72740e255f956bda26c5 2 parents 6730481 + bfed7de
@Ovid Ovid authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/Test/Class.pm
View
9 lib/Test/Class.pm
@@ -720,6 +720,15 @@ Just like setup and teardown methods you can pass an optional number of tests to
sub example : Test(startup => 1) {
ok(1, 'a startup method with one test');
};
+
+If you want to run an unknown number of tests within your startup method, you need to say e.g.
+
+ sub example : Test(startup => no_plan) {
+ ok(1, q{The first of many tests that don't want to have to count});
+ ...
+ }
+
+as the : Tests attribute behaves exactly like : Test in this context.
If a startup method has a failing test or throws an exception then all other tests for the current test object are ignored.

0 comments on commit 424619b

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