Replies: 1 comment 2 replies
-
Right now, none of the consumers provide this information so you'd have to write your own. It's slightly more involved than a direct API call. The main thing is to use the async module to wrap calls because they are mostly async on the client. To use a custom consumer you can provide them in the setup: consumers = {
my_consumer = function (client)
end
}, I've just pushed some doc updates and extra type hints for a lot of neotest so hopefully there is enough info in the docs on how to use the client along with existing consumers as examples. The neotest/lua/neotest/consumers/run.lua Lines 19 to 39 in de2f68f I'd heavily recommend using something like https://github.com/folke/neodev.nvim to enable type checking of neotest, it will make life a lot easier (and be sure to pull the latest commits) 😅 To get the tests in a file, you're looking for |
Beta Was this translation helpful? Give feedback.
-
Hey ✌
I read a while through the code, but I fail to figure out a plain method to call that gives me a list of all positions (of test functions) in a file. Without knowing the adpater or so.
Maybe just the row. Better also with column or even range. If it would also include the result it can't get better. 😅
Any hints?
Beta Was this translation helpful? Give feedback.
All reactions