Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation tweak #1

Merged
merged 1 commit into from Nov 19, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/Test/Class.pm
Expand Up @@ -720,6 +720,15 @@ Just like setup and teardown methods you can pass an optional number of tests to
sub example : Test(startup => 1) { sub example : Test(startup => 1) {
ok(1, 'a startup method with one test'); 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. If a startup method has a failing test or throws an exception then all other tests for the current test object are ignored.


Expand Down