File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -435,14 +435,14 @@ else {
435
435
}
436
436
= end code
437
437
438
- Note that the C < skip > function and the tests to be skipped must be in
439
- two separate parts of an C < if/else > construct .
438
+ Note that if you mark a test as skipped, you must also prevent that
439
+ test from running .
440
440
441
441
= item X < skip-rest($reason?)|skip-rest >
442
442
443
443
Skip the remaining tests. If the remainder of the tests in the test file
444
444
would all fail due to some condition, use this function to skip them,
445
- providing an optional C < $reason > as to why.
445
+ providing an optional C < $reason > as to why.
446
446
447
447
= begin code
448
448
unless $location ~~ "Wimbledon Common" {
@@ -458,8 +458,10 @@ ok womble();
458
458
Note that C < skip-rest > requires a C < plan > to be set, otherwise the
459
459
C < skip-rest > call will throw an error. If no plan was set, you can use
460
460
C < done > to indicate the end of the test run (though of course the test
461
- summary will not count skipped tests). Note also the C < exit > is required
462
- to prevent the tests from executing.
461
+ summary will not count skipped tests). Note also the C < exit > is
462
+ required in the example to prevent the skipped tests from running.
463
+ Alternatively, you could enclose the remaining tests in an C < else >
464
+ branch.
463
465
464
466
= head1 Manual control
465
467
You can’t perform that action at this time.
0 commit comments