Mark Stosberg wrote: > On 2005-03-13, Geoffrey Young <[EMAIL PROTECTED]> wrote: > >>nevertheless, what you are replying to was just a discussion about a feature >>that doesn't exist in the standard Test::More toolkit but was brought up >>because Apache-Test's plan() works a bit differently and there are enough >>people who like it that I thought it warranted a discussion here to see if >>T::M was interested. > > > I like these ideas-- they seem like worthwhile additions. > > Let's see if I can get an example right. > > This: > > use Test::More; > if( $^O eq 'MacOS' ) { > plan skip_all => 'Test irrelevant on MacOS'; > } > else { > plan tests => 42; > } > > would become something more like: > > use Test::More tests => 5, have 'LWP', { "not Win32" => sub { $^O eq > 'MSWin32'} }; > > (OK, so that example was highly adapted from the Apache::Test docs).
something like that. > > It is shorter, but does mean a more functionality to understand for the > programmer to use it. well, I don't think anyone was suggesting that skip_all go away, only that plan() become that much more useful. so in that respect, yeah, there is more for programmers to understand, but that's certainly not an obstacle since they don't need to use (or understand) it immediately. --Geoff