use Test::More; if( chrome_is_unavailable ) { plan skip_all => "Chrome / chromium not found/installed, skipping test."; exit 0; }; plan tests => $test_count; ... done_testing();