Documentation for sub
skip-rest assembled from the following types:
sub skip-rest( = '<unknown>')
Skip the remaining tests. If the remainder of the tests in the test file would all fail due to some condition, use this function to skip them, providing an optional
$reason as to why.
my ; sub womble ; ...;unless ~~ "Wimbledon Common"# tests requiring functional womblingok womble();# ...
skip-rest requires a
plan to be set, otherwise the
skip-rest call will throw an error. Note that
skip-rest does not exit the test run. Do it manually, or use conditionals to avoid running any further tests.