JohnnyHendriks / TestAdapter_Catch2

Visual Studio Test Adapter for Catch2
MIT License
104 stars 29 forks source link

"No source available" when using Visual Studio CMake Integration #74

Closed KStocky closed 2 months ago

KStocky commented 3 months ago

This is probably somewhat related to #3, however, I have no issues with getting TestAdapter_Catch2 to discover and run tests from the Visual Studio text explorer when I am using the CMake integration, as described in that issue. So I guess that MS have fixed issue #3 now?

The issue I have is that in the "Test Detail Summary" section, all I see is "No source available", and when I run a test there is no information about how many asserts passed or failed as there should be. It just tells me the duration of the test and that "No source available". If I use CMake to generate a visual studio solution and load that visual studio solution instead of using the CMake Integration, everything works as expected. So just like #3, this seems to be a CMake integration issue.

I am currently using Visual Studio 17.11.0 Preview 3.0. This behaviour can be observed by using either the Visual Studio 2022 generator or a Ninja generator (either single config or multi config).

KStocky commented 2 months ago

On further reading and exploring of #3. This is the exact same issue. Closing