Closed hihig2001 closed 2 years ago
I'm afraid this test adapter only works in combination with a Visual Studio solution. Not with a CMake project directly. You can use CMake to generate a Visual Studio Solution, and open that one in the IDE.
Alternatively, I believe you can use the CMake scripts provided by Catch2 that register TEST_CASE
s with CTest. In that case the build-in CTest-adapter will be used as far as I know.
I understand, then it seems that built-in CTest-adpater's fault I assume.
I used VS2022, CMake project. While I'm experimenting with testing framework, ctest, I found this problem. My CMake project has separated with multiple modules(not cpp moudle) and each has different Test executables. and when there are name has been duplicated with multiple tests, it seems that Test Explorer show only 1 result. while commandline with ctest works fine with it, i'm not sure that it is bug in vs or bug in adapter.