CppUTest-Test-Adapter icon indicating copy to clipboard operation
CppUTest-Test-Adapter copied to clipboard

Unable to debug tests with CMake launchTargetPath setup

Open spoorcc opened this issue 4 years ago • 2 comments

We run our unit tests from CMake on Windows, the program we use as debug target comes from the cmake plugin (as recommended in their documentation):

"program": "${command:cmake.launchTargetPath}",

Your (very usefull!) plugin, checks for a debug configuration and on windows it will look for the .exe extension, but this is missing. This makes it not possible to debug from the Test Explorer view.

https://github.com/bneumann/CppUTest-Test-Adapter/blob/d2ebbd087c52d419b1e2c45f9df51f52752bba5b/src/Infrastructure/VscodeSettingsProvider.ts#L56

spoorcc avatar Mar 16 '22 11:03 spoorcc

Interesting find. Gotta think what I was trying to solve there, maybe it works even without the exe?

bneumann avatar Mar 16 '22 15:03 bneumann

Oh my god, how 2 and a half years pass. Sorry for keeping you hanging. I just had a day off and did a lot of fixes. I just pushed the removal. Check the pipeline, there should be an artifact that you can download and use for testing:

https://github.com/bneumann/CppUTest-Test-Adapter/actions/runs/11146141466/artifacts/2006414798

bneumann avatar Oct 02 '24 14:10 bneumann