Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Documentation tweak #1

merged 1 commit into from

3 participants


It took me a while digging through the code before I realised that saying

sub startup_foo : Tests(startup) {

wasn't going to work - the Tests attribute only fills in no_plan if there are no arguments, and there's going to be an argument if this is a startup method.

Arguably it should Do The Right Thing, but that breaks encapsulation somewhat.

@Ovid Ovid merged commit 424619b into adrianh:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 16, 2012
  1. @skington

    Documentation clarification.

    skington committed
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/Test/
9 lib/Test/
@@ -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.
Something went wrong with that request. Please try again.