background image
<< skip an entire block of code | Procrastination Codified >>
<< skip an entire block of code | Procrastination Codified >>
skipall
skipall
In some cases you want to skip a whole test file.
use Test::More;
if( $^O eq 'MSWin32' ) {
plan tests => 42;
}
else {
plan skip_all => 'Win32 specific test';
}
Test::More will exit at the skip_all.
On non-Win32, the output will be:
1..0 # skip Win32 specific test
Test::Harness will interpret this as a skipped test.