On Sun, 24 Jun 2001, brian moseley wrote:

> 
> fwiw, i've come up with a couple of other useful shorthand
> routines for my Wombat::Test package:
... 
> they allow me to do stuff like this at the beginning of each
> test file:
> 
>   skip_all $@ unless have_lib qw(mod_perl Foo Apache::FakeRequest);
>   plan tests => 6;

that's cool, 1.x has similar:
skip_test unless have_module 'Foo';

i just found it shorter/cleaner to write:

plan tests => 6, \&condition;

especially since &condition can be used in multiple tests (like &have_lwp 
is), without having to duplicate the various condition code in each .t

i'm totally fine with adding these routines to the Apache-Test kit,
might as well keep the same names as 1.x.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to