httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Re: Skipping subtests?
Date Wed, 07 Nov 2001 17:54:02 GMT
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



Mime
View raw message