Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improve explanations for skip funcs per timotimo; remove spurious spa…
…ce at EOL
  • Loading branch information
tbrowder committed Jun 7, 2016
1 parent 11a1b16 commit fcc8e00
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions doc/Language/testing.pod
Expand Up @@ -435,14 +435,14 @@ else {
}
=end code
Note that the C<skip> function and the tests to be skipped must be in
two separate parts of an C<if/else> construct.
Note that if you mark a test as skipped, you must also prevent that
test from running.
=item X<skip-rest($reason?)|skip-rest>
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 C<$reason> as to why.
providing an optional C<$reason> as to why.
=begin code
unless $location ~~ "Wimbledon Common" {
Expand All @@ -458,8 +458,10 @@ ok womble();
Note that C<skip-rest> requires a C<plan> to be set, otherwise the
C<skip-rest> call will throw an error. If no plan was set, you can use
C<done> to indicate the end of the test run (though of course the test
summary will not count skipped tests). Note also the C<exit> is required
to prevent the tests from executing.
summary will not count skipped tests). Note also the C<exit> is
required in the example to prevent the skipped tests from running.
Alternatively, you could enclose the remaining tests in an C<else>
branch.
=head1 Manual control
Expand Down

0 comments on commit fcc8e00

Please sign in to comment.