I would find something along those lines incredibly helpful.  Most of our tests 
have a variable number of tests based on a number of variables and so I use 
no_plan and every single test.  Being able to add to the plan within a block of 
code would be massivley helpful and would allow us to be able to use a plan.


Eric Harrison 
QA Developer

[EMAIL PROTECTED]
w: www.rea-group.com    
        

REA Group refers to realestate.com.au Ltd (ASX:REA)

This email transmission may contain confidential information. If you have 
received this transmission in error, please notify us immediately on (61 3) 
9897 1121 or reply by email to the sender. You must destroy the email 
immediately and not use, copy, distribute or disclose the contents. Thank you.  
    

-----Original Message-----
From: Eric Wilhelm [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 4 December 2007 3:37 PM
To: perl-qa@perl.org
Subject: Re: Why not run a test without a plan?

# from David Golden
# on Monday 03 December 2007 19:55:

>With some sugar, that could actually be quite handy for something like 
>test blocks.  E.g.:
>
>{
>  plan add => 2;
>  ok( 1, "wibble" );
>  ok(1, "wobble" );
>}

or maybe make the block a sub

block {
  subplan 2;
  ok(1, "wibble");
  ok(1, "wobble");
};

The bit where prototypes "must have the & first" hurts, but then there's always 
λ{}. :-D

--Eric
--
The reasonable man adapts himself to the world; the unreasonable man persists 
in trying to adapt the world to himself. Therefore all progress depends on the 
unreasonable man.
--George Bernard Shaw
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to