in reply to Skipping Test::Unit::TestCase tests

How are you using the skip() function ? The correct way to do it (as the document says) is to wrap your tests with a SKIP: {}; block, like this:
SKIP: { skip $why, $how_many unless $have_some_feature; ok( foo(), $test_name ); is( foo(42), 23, $test_name ); };

Replies are listed 'Best First'.
Re^2: Skipping Test::Unit::TestCase tests
by moot (Chaplain) on Apr 25, 2005 at 19:24 UTC
    Which would work fine, except there is no skip() function in Test::Unit::TestCase.
    $ ( perldoc -m Test::Unit ; perldoc -m Test::Unit::TestCase ; \ perldoc -m Test::Unit::TestSuite; perldoc -m Test::Unit::Runner; \ perldoc -m Test::Unit::Assert ; perldoc -m Test::Unit::Tutorial ; \ perldoc -m Test::Unit::Test ; perldoc -m Test::Unit::Loader ) \ | grep -i skip debug(sprintf "skipping %s\n", $t->name()); $