Skip to content

Commit b5500d1

Browse files
avargitster
authored andcommitted
t/README: Add a section about skipping tests
Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 97d9fd9 commit b5500d1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

t/README

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,18 @@ This test harness library does the following things:
231231
consistently when command line arguments --verbose (or -v),
232232
--debug (or -d), and --immediate (or -i) is given.
233233

234+
Skipping tests
235+
--------------
236+
237+
If you need to skip all the remaining tests you should set skip_all
238+
and immediately call test_done. The string you give to skip_all will
239+
be used as an explanation for why the test was skipped. for instance:
240+
241+
if ! test_have_prereq PERL
242+
then
243+
skip_all='skipping perl interface tests, perl not available'
244+
test_done
245+
fi
234246

235247
End with test_done
236248
------------------

0 commit comments

Comments
 (0)