From a4e77857515398f9e0b9be0393f2965be66242e9 Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Sun, 22 Mar 2026 21:53:42 +0800 Subject: [PATCH] fix: use gtest_discover_tests for granular CTest test discovery Replace add_test() with gtest_discover_tests() to enable CTest to discover all 55 individual Google Test cases instead of treating them as a single test. This improves test reporting granularity from 1/1 to 55/55 tests. --- tests/RHI/D3D12/unit/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/RHI/D3D12/unit/CMakeLists.txt b/tests/RHI/D3D12/unit/CMakeLists.txt index 8ce26e1b..71f67893 100644 --- a/tests/RHI/D3D12/unit/CMakeLists.txt +++ b/tests/RHI/D3D12/unit/CMakeLists.txt @@ -41,4 +41,5 @@ target_include_directories(d3d12_engine_tests PRIVATE enable_testing() -add_test(NAME D3D12EngineTests COMMAND d3d12_engine_tests) +include(GoogleTest) +gtest_discover_tests(d3d12_engine_tests)