On Tue, 6 Nov 2001, Rodent of Unusual Size wrote: > Is there a way to indicate that specific subtests should be > skipped? I could not do them and adjust the planned tests > accordingly, but I'd rather be able to notify the person > running the tests that some of them can't be run and why. > (Case in point: can't do upload chunking with LWP < 5.60.)
use Apache::Test;
plan tests => 2;
ok 1;
if ($foo) {
ok $foo;
}
else {
skip 'no foo';
}
prints:
1..2
ok 1
ok 2 # skip no foo
