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

[Feature] Support CTest without CMake #4169

Open
kalvdans opened this issue Nov 7, 2024 · 0 comments
Open

[Feature] Support CTest without CMake #4169

kalvdans opened this issue Nov 7, 2024 · 0 comments
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature more votes needed We currently are de-prioritizing this issue until more community up-votes are provided
Milestone

Comments

@kalvdans
Copy link

kalvdans commented Nov 7, 2024

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:

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

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.

@github-project-automation github-project-automation bot moved this to Blocked in CMake Tools Nov 7, 2024
@github-actions github-actions bot added the triage label Nov 7, 2024
@Amy-Li03 Amy-Li03 added enhancement an enhancement to the product that is either not present or an improvement to an existing feature and removed triage labels Nov 8, 2024
@gcampbell-msft gcampbell-msft added the more votes needed We currently are de-prioritizing this issue until more community up-votes are provided label Nov 11, 2024
@gcampbell-msft gcampbell-msft added this to the Backlog milestone Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature more votes needed We currently are de-prioritizing this issue until more community up-votes are provided
Projects
Status: Blocked
Development

No branches or pull requests

3 participants