in reply to Test::Builder::skip() not dwimming.

http://search.cpan.org/~adie/Test-Class-0.30/lib/Test/Class.pm#SKIPPED_TESTS
sub DEMO_1 : Tests { my $self = shift; return 'Wanting to skip the DEMO_1 tests'; my $results = { '1 / 2' => "0.5", '1 / 4' => 0.25, }; _verify($results); }

Replies are listed 'Best First'.
Re^2: Test::Builder::skip() not dwimming.
by syphilis (Archbishop) on Sep 03, 2008 at 11:18 UTC
    return 'Wanting to skip the DEMO_1 tests';

    Heh ... that's a nice solution to the problem ... and sort of obvious ... mumble, mumble :-)

    It doesn't really show me what one is supposed to do with Test::Builder::skip(), but I'm fast losing interest in that, anyway. Thanks, Anonymous Monk.

    Cheers,
    Rob
    Update: Thinking about this solution a little more, there's a couple of minor quibbles, iinm. Firstly, providing a return message is pointless, since one never gets to see it. Secondly, there's no acknowledgement of the fact that any tests have been skipped. (Still ... it's a rather clean solution.)
      Firstly, providing a return message is pointless, since one never gets to see it. Secondly, there's no acknowledgement of the fact that any tests have been skipped.

      Call diag() first, then return.