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

New Adapter: neotest-ctest - A neotest adapter for C/C++ using CTest as a test runner #419

Open
orjangj opened this issue Jun 11, 2024 · 1 comment

Comments

@orjangj
Copy link

orjangj commented Jun 11, 2024

Hello,

I've been meaning to create this ticket for quite some time now, but I never got around to "completing" my adapter. Now, however, I'm quite happy with the result, which is why I'm reaching out with a request to add it to your list of adapters.

You'll find it here: https://github.com/orjangj/neotest-ctest

It's primarily targeting C/C++ test frameworks using CTest as a test runner. It currently has basic support for GoogleTest and Catch2. I've put some effort into the implementation to ensure that extending it with new test frameworks will be fairly easy. I'm planning on adding support for more frameworks such as doctest and CppUTest. Maybe more if there are feature requests.

It also parses test results and displays errors as diagnostics.

It does not handle compilation of source/tests (and it probably never will), but I've found that using https://github.com/Civitasv/cmake-tools.nvim as a companion plugin works like a charm.

It does not support the debug/dap strategy yet, but I have plans to support that as well.

Hope to hear from you soon.

@orjangj
Copy link
Author

orjangj commented Jun 11, 2024

I will create a PR to include it in the README if you accept my request :)

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

No branches or pull requests

1 participant