Comments (17)
I have a prototype for ctest https://github.com/hfn92/cmake-tools.nvim/tree/ctest This is pretty much all I would've added for myself
from cmake-tools.nvim.
I think a single terminal would be nice for the ctests to happen:
[CMakeTools] CTest
? How about this?
Yeah. It’s convenient.
from cmake-tools.nvim.
Looks like it freezes. But imo tests like those written with gtest shouldn't do things like that.
Yeah, but sometimes people want that. We should make it an option.
from cmake-tools.nvim.
+1 ctest would be a good additon to cmaketools as it comes with vanilla cmake. Seems like currently it uses quickfix terminals. Is this WIP? I will try and port it to the terminal buffers + Windows10 support(Later when I find the time).
I think a single terminal would be nice for the ctests to happen:[CMakeTools] CTest
? How about this?I'd want tests to run in quickfix so that I can jump directly to test errors. That was my whole reason for writing the gtest plugin. How about making it an option at least?
Ooh nice. I think the quickfix method should be the default if you can quickly jump in between errors directly with the quickfix list.
from cmake-tools.nvim.
I've added ctest support(though very naive), now you can use CMakeRunTest
to run tests with your specified executor. Like:
Screen.Recording.2023-12-15.at.16.15.35.mov
from cmake-tools.nvim.
Okay. That’s a good start.
from cmake-tools.nvim.
+1 ctest would be a good additon to cmaketools as it comes with vanilla cmake.
Seems like currently it uses quickfix terminals. Is this WIP? I will try and port it to the terminal buffers + Windows10 support(Later when I find the time).
I think a single terminal would be nice for the ctests to happen: [CMakeTools] CTest
? How about this?
from cmake-tools.nvim.
+1 ctest would be a good additon to cmaketools as it comes with vanilla cmake. Seems like currently it uses quickfix terminals. Is this WIP? I will try and port it to the terminal buffers + Windows10 support(Later when I find the time).
I think a single terminal would be nice for the ctests to happen:
[CMakeTools] CTest
? How about this?
I'd want tests to run in quickfix so that I can jump directly to test errors. That was my whole reason for writing the gtest plugin. How about making it an option at least?
from cmake-tools.nvim.
Yeah, for sure, we should provide two apis, one for quickfix, another for terminal.
from cmake-tools.nvim.
So the detailed logic should be placed in quickfix.lua and terminal.lua, and ctest.lua just calls them.
from cmake-tools.nvim.
And I have a question, if tests are launched in quickfix, what will happen if it should accept values from stdin? Like cin >> x;
from cmake-tools.nvim.
Looks like it freezes. But imo tests like those written with gtest shouldn't do things like that. (Btw when trying to debug it just crashes my session when reaching std::cin
. But that could be a problem elsewhere)
from cmake-tools.nvim.
Btw when trying to debug it just crashes my session when reaching
std::cin
. But that could be a problem elsewhere
Yeah. Too many changes recently, maybe I forgot to add some logics.
from cmake-tools.nvim.
There is also neotest-gtest for neotest integration. I could not get it to work properly but it can be use a base to some of the features needed
from cmake-tools.nvim.
There is also neotest-gtest for neotest integration. I could not get it to work properly but it can be use a base to some of the features needed
Thanks, I shall review that repo someday.
from cmake-tools.nvim.
I'd go for cmake ctest, as it supports integration with other testing frameworks. Or the other way around, most testing framework have at leas documentation on how to integrate with ctest, like for example https://github.com/doctest/doctest
from cmake-tools.nvim.
Ctest will use Executor to run commands.
from cmake-tools.nvim.
Related Issues (20)
- Error during the lazy initialization, when it is triggered by pressing hotkeys HOT 11
- Wrong cwd when running CTest -> runner doesn't pass arguments when running CTest HOT 3
- Symlink compile_commands.json doesn't appear to work on windows HOT 7
- quick start HOT 4
- on_exit in default terminal.lua HOT 1
- How to choose target when every build/run HOT 18
- targets in buildPresets of CMakePresets.json not honored
- Build Directory Creation will Fail if it Requires a Recursive Create on Windows HOT 4
- Build Directory and Build Targets Not Always Found HOT 11
- Support fish shell HOT 4
- CMakeRun No Output on Windows HOT 5
- Slowdown every time cursor is moved HOT 4
- Whitespace makes CMakeGenerate error HOT 3
- Directory path starting with number causes error
- Feature:Easier to use
- neotest-ctest adapter HOT 3
- Presets are not ignored when `cmake_use_preset` is set to false HOT 5
- Copy compile_commands to a user specified directory after CMake Configure
- target filename HOT 2
- Suggestion: provide a stable callback-based lua API HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmake-tools.nvim.