GoogleTest: Set DEF_SOURCE_LINE on tests if file and line are known

This information is available when --gtest_output=json is supported,
which it almost always is on GoogleTest >= 1.8.1.
This commit is contained in:
Ottmar Zittlau
2025-05-02 14:56:21 +02:00
committed by Craig Scott
parent 1cdceae8e3
commit 3f780c3fde
5 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
gtest-use-json-output-for-discovery
-----------------------------------
* The :command:`gtest_discover_tests()` command from the :module:`GoogleTest`
module now sets the ``DEF_SOURCE_LINE`` test property for each discovered
test if gtest supports the ``--gtest_output=json`` option. This test
property is used by some IDEs to locate the source for each test.