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

Test explorer #1682

Closed
lygstate opened this issue Feb 20, 2021 · 9 comments
Closed

Test explorer #1682

lygstate opened this issue Feb 20, 2021 · 9 comments
Assignees
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature Feature: ctest
Milestone

Comments

@lygstate
Copy link
Contributor

Currently, the debugger can only lauch program without parameters,
And with ctest, we can specify parameters as much as possible,
So we'd better to add all possible ctest into debugger directly,
and the first parameter is the program to debug, we can checking
if the first parameter is an executable that's genreated by cmake, if that's ture
then add it to the debug list.

@andreeis
Copy link
Contributor

If you use the CMake Tools command "CMake: Debug", the extension reads the setting "cmake.debugConfig.args" which is an array of string.
If you use the VSCode debugger command "Debug: Start Debugging" (or F5), VSCode will read "configurations[].args" from launch.json.

Is there something not properly working with this support? Are you suggesting additional functionality than what this args setting provides?

@andreeis andreeis added Feature: debug/launch more info needed More info is needed from the community for us to properly triage and investigate. labels Feb 22, 2021
@lygstate
Copy link
Contributor Author

If you use the CMake Tools command "CMake: Debug", the extension reads the setting "cmake.debugConfig.args" which is an array of string.
If you use the VSCode debugger command "Debug: Start Debugging" (or F5), VSCode will read "configurations[].args" from launch.json.

Is there something not properly working with this support? Are you suggesting additional functionality than what this args setting provides?

I am talking about ctest, this can preconfigure command line args in cmake file directly, without the need the config in vscode config, as we may have a large list of testing command

@bobbrow
Copy link
Member

bobbrow commented Feb 23, 2021

@lygstate
Copy link
Contributor Author

Have you tried this extension? https://marketplace.visualstudio.com/items?itemName=fredericbonnet.cmake-test-adapter

Looks good, is that proper to intergate these features into vscode-cmake-tools?

@bobbrow
Copy link
Member

bobbrow commented Feb 23, 2021

We have talked about doing something like this, but it may be a while before we can get to it. I'm going to rename the issue to cover it since I didn't find any others that appear to address this specifically.

@bobbrow bobbrow changed the title Feature request, add ctest into the cmake debugger lancher Test explorer Feb 23, 2021
@bobbrow bobbrow added enhancement an enhancement to the product that is either not present or an improvement to an existing feature Feature: ctest and removed Feature: debug/launch more info needed More info is needed from the community for us to properly triage and investigate. labels Feb 23, 2021
@bobbrow bobbrow added this to the Backlog milestone Feb 23, 2021
@bobbrow
Copy link
Member

bobbrow commented Feb 23, 2021

VS Code is also looking at integrating a test explorer: microsoft/vscode#107467. We would prefer to use that framework instead of take a dependency on the 3rd party one. I believe that they are working together on it though.

@Zingam
Copy link
Contributor

Zingam commented Mar 3, 2021

@bobbrow Cool. Do you have any specific plans yet? I currently use gtest and the available 3rd party plugins. They mostly work but there is a lot to be desired. What I look forward in an IDE is always a Visual Studio-like experience. The VSCode set if *tools have really narrowed that gap lately.

I hope that in the future a more tightly integrated and uniform debugging, testing experience with CMake/GTest/C++ could be achieved.
My current work environment is MacOS and Ubuntu 20.04 on VirtualBox. It is surprisingly good experience so far.

@bobbrow
Copy link
Member

bobbrow commented Mar 3, 2021

I haven't put this on our roadmap yet, but you should add a 👍 reaction to the first comment in this thread to help us prioritize it.

@Yanpas
Copy link

Yanpas commented Aug 6, 2021

Test UI is finally built into vs code 1.59, I would be glad to see ctest support!

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 Feature: ctest
Projects
None yet
Development

No branches or pull requests

7 participants