Skip to content

Commit de8a8ed

Browse files
committed
Merge branch 'ab/test-readme-updates'
Doc updates. * ab/test-readme-updates: t/README: clarify the test_have_prereq documentation t/README: change "Inside <X> part" to "Inside the <X> part" t/README: link to metacpan.org, not search.cpan.org
2 parents 49a8fe8 + 4473060 commit de8a8ed

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

t/README

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,13 @@ Don't:
471471
their output.
472472

473473
You can glean some further possible issues from the TAP grammar
474-
(see http://search.cpan.org/perldoc?TAP::Parser::Grammar#TAP_Grammar)
474+
(see https://metacpan.org/pod/TAP::Parser::Grammar#TAP-GRAMMAR)
475475
but the best indication is to just run the tests with prove(1),
476476
it'll complain if anything is amiss.
477477

478478
Keep in mind:
479479

480-
- Inside <script> part, the standard output and standard error
480+
- Inside the <script> part, the standard output and standard error
481481
streams are discarded, and the test harness only reports "ok" or
482482
"not ok" to the end user running the tests. Under --verbose, they
483483
are shown to help debugging the tests.
@@ -611,9 +611,11 @@ library for your script to use.
611611

612612
- test_have_prereq <prereq>
613613

614-
Check if we have a prerequisite previously set with
615-
test_set_prereq. The most common use of this directly is to skip
616-
all the tests if we don't have some essential prerequisite:
614+
Check if we have a prerequisite previously set with test_set_prereq.
615+
The most common way to use this explicitly (as opposed to the
616+
implicit use when an argument is passed to test_expect_*) is to skip
617+
all the tests at the start of the test script if we don't have some
618+
essential prerequisite:
617619

618620
if ! test_have_prereq PERL
619621
then

0 commit comments

Comments
 (0)