On Mon, 25 Jun 2001, Doug MacEachern wrote:
> that's cool, 1.x has similar:
> skip_test unless have_module 'Foo';
yeah i knew i horked the concept from you somewhere along
the line :)
> 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
yeah, having multiple options is nice :)
i have a TestFixture class that calls plan internally based
on a dynamically built test list, so i can't actually call
plan in the test script, so having skip_all is very handy.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]