Skip to content

Add C++ (GTest) or vim-gtest support #104

@tpotie

Description

@tpotie

Hi! Great plugin! :D

I have been working on getting a better integrated neovim setup, where coding, debugging & testing feel more at home with each other.
Your plugin really takes care of integrating the testing procedure right back into vim. Very nice! It is able to provide the quick pass/fail of testing (TDD) that I am looking for (at least in vim - this I have been able to replicate with vscode for example).

As I am trying to migrate to vim completely, I am looking to find the test integration for C++.
I have looked into vim-test to see if I could integrate C++ test support (using Google Test) but I came across a hiccup where it seems to be a bit tricky to identify the namespace and test names (as in GTest they are represented on one line as TEST_F(namespace/suite, test) {} - and that's if they fit on one line - due to possible width screen format limits set)(There is another hiccup in terms of launching the compilation on file changes - but I see this as being able to be passed to another shortcut or passed as a pre-hook to the test run command)

However, there is also https://github.com/alepez/vim-gtest, that handles running google test from within vim (similar to vim-test that it doesn't have the pass/fail and summary overview that vim-ultest provides).

This leads to:

Feature Request (or help)

A request to integrate C++ support (using GTest), is this possible by adding extra configs to vim-ultest? Or by adding support for vim-gtest?

This request also leads to, asking for your opinion on what could be possible in getting C++ test support into vim-ultest? As you know the code and have experience interacting with vim-test amongst other vim plugins - is there a possible area that you see could be the easiest to get this added? (As I am willing to provide help - in the form of coding or other - but I do not know the landscape as well as you)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions