Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ctest-only projects #76

Open
kalvdans opened this issue Oct 16, 2024 · 1 comment
Open

Support ctest-only projects #76

kalvdans opened this issue Oct 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@kalvdans
Copy link

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 find 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:

  • Create a CMakeCache.txt with a single line: CMAKE_CTEST_COMMAND:INTERNAL=ctest
  • Change configuration: "cmakeExplorer.buildDir": "."

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

@fredericbonnet fredericbonnet added the enhancement New feature or request label Nov 24, 2024
@fredericbonnet
Copy link
Owner

@kalvdans thanks for the suggestion! Indeed that would be a nice enhancement and it doesn't look like too much work. I'm a bit overwhelmed by real world these days (hence my late reply) but I'll give it a try once things settle down for me. I'm glad you have a simple workaround in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants