-
Notifications
You must be signed in to change notification settings - Fork 74
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
neotest-ctest adapter #241
Comments
I think this is very interesting! Currently, we parse all tests using |
Yes, in short neotest provides a unified API and UI to run tests, while neotest adapters will take care of constructing commands to run tests in addition to parsing test results. One of the things that makes neotest such a great plugin is that you can use it for many different languages/frameworks (provided there is an adapter available) and that you get feedback on passing/failing test in the sign column. Neotest can also display test output (parsed by adapters) in a floating window, show errors through nvim's diagnostics (if supported by the adapter), and more.
|
I was looking for a plugin like this one. Integration of CMake with testing frameworks is needed. Thank you for your work. |
First of all, I want to thank you for making this plugin. I've been using it for quite some time now and it works like a charm so far.
Anyway, I found this issue #68 and I noticed that neotest was brought up in the discussion.
I have written a neotest adapter for C/C++ using CTest as a test runner. You can find it here: https://github.com/orjangj/neotest-ctest. It currently supports basic test macros from both GoogleTest (
TEST
,TEST_F
) and Catch2 (TEST_CASE
,TEST_CASE_METHOD
,SCENARIO
). I plan to add support parameterized tests (if possible) and add support for more test frameworks as well.I'm not sure where to take it from here, but I figured you might want to have a look at it and maybe reference it in the README?
Let me know what you think. If not, you can just close this issue :)
The text was updated successfully, but these errors were encountered: