summaryrefslogtreecommitdiff
path: root/t/README
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-12-15 09:39:46 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-15 09:39:46 -0800
commit285907901c386eae4e0d50c617e1b82a58cff778 (patch)
treefa6d38cedf02f58d3f034fe818039ff122532c74 /t/README
parentMerge branch 'ab/mark-leak-free-tests-even-more' (diff)
parenttest-lib: make BAIL_OUT() work in tests and prereq (diff)
downloadtgif-285907901c386eae4e0d50c617e1b82a58cff778.tar.xz
Merge branch 'fs/test-prereq'
The test framework learns to list unsatisfied test prerequisites, and optionally error out when prerequisites that are expected to be satisfied are not. * fs/test-prereq: test-lib: make BAIL_OUT() work in tests and prereq test-lib: introduce required prereq for test runs test-lib: show missing prereq summary
Diffstat (limited to 't/README')
-rw-r--r--t/README6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/README b/t/README
index 29f72354bf..2353a4c5e1 100644
--- a/t/README
+++ b/t/README
@@ -466,6 +466,12 @@ explicitly providing repositories when accessing submodule objects is
complete or needs to be abandoned for whatever reason (in which case the
migrated codepaths still retain their performance benefits).
+GIT_TEST_REQUIRE_PREREQ=<list> allows specifying a space speparated list of
+prereqs that are required to succeed. If a prereq in this list is triggered by
+a test and then fails then the whole test run will abort. This can help to make
+sure the expected tests are executed and not silently skipped when their
+dependency breaks or is simply not present in a new environment.
+
Naming Tests
------------