microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.48k stars 453 forks source link

[Feature] Support CTest without CMake #4169

Open kalvdans opened 2 weeks ago

kalvdans commented 2 weeks ago

Brief Issue Summary

We have a Python project with no compiled code, and no need for cmake. But we still like to use ctest as the test driver. It works fine from the command-line, and have the list of tests in CTestTestfile.cmake (as documented).

In order to get them into vscode test explorer, two hacks are needed to trick cmake-test-explorer to believe the source directory is a build directory:

Would it be possible to make vscode-cmake-tools discover a testable directory by the existance of CTestTestfile.cmake?

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

Migrated from this discussion thread.