summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-11-15 14:21:40 +0000
committerKitware Robot <kwrobot@kitware.com>2021-11-15 09:21:51 -0500
commitca4b81d69f645408cfca9960a96b835517d042a3 (patch)
treeb4c3ed0a5cc8cea0fd0d1c60b0dcc1434df5b5d1
parentfed67fa40d7b6e34ee7c8565694bd54af61aed73 (diff)
parent1ef54f3163a5c0835a2e214772d7170c9aeab0b1 (diff)
downloadcmake-ca4b81d69f645408cfca9960a96b835517d042a3.tar.gz
Merge topic 'doc-gtest_discover_tests-filter' into release-3.22
1ef54f3163 Help: Clarify meaning of filter expression in gtest_discover_tests() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6727
-rw-r--r--Modules/GoogleTest.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/GoogleTest.cmake b/Modules/GoogleTest.cmake
index a483c0356d..efc33e381b 100644
--- a/Modules/GoogleTest.cmake
+++ b/Modules/GoogleTest.cmake
@@ -208,8 +208,11 @@ same as the Google Test name (i.e. ``suite.testcase``); see also
``TEST_FILTER expr``
.. versionadded:: 3.22
- Filter expression to pass to ``--gtest_filter`` argument during test
- discovery.
+ Filter expression to pass as a ``--gtest_filter`` argument during test
+ discovery. Note that the expression is a wildcard-based format that
+ matches against the original test names as used by gtest. For type or
+ value-parameterized tests, these names may be different to the potentially
+ pretty-printed test names that ``ctest`` uses.
``NO_PRETTY_TYPES``
By default, the type index of type-parameterized tests is replaced by the