Re: TAP and skip_rest

2005-03-11 Thread Andy Lester
On Fri, Mar 11, 2005 at 03:40:41PM -0700, Jim Cromie ([EMAIL PROTECTED]) wrote: > I think this is open to interpretation, at least its not specifically > excluded in > http://www.petdance.com/random/tap.html#skipping_tests Eeek, let's not refer to that any more. http://search.cpan.org/dist/Test-

Re: TAP and skip_rest

2005-03-11 Thread Michael G Schwern
On Fri, Mar 11, 2005 at 03:40:41PM -0700, Jim Cromie wrote: > There is no skip_rest(), but skip_all() can do that job, with a tiny > enhancement I would really rather it be called skip_rest(). There's no reason to wedge two different bits of functionality into one function.

TAP and skip_rest

2005-03-11 Thread Jim Cromie
There is no skip_rest(), but skip_all() can do that job, with a tiny enhancement sub skip_all { -if (@_) { - print STDOUT "1..0 # Skipped: @_\n"; +if ($test == 1) { + if (@_) { + print STDOUT "1..0 \# Skipped: @_\n"; + } else { + print STDOUT "1..0\n"