Closed fredrikaverpil closed 1 year ago
Here's what works for me (I got these from the neotest docs):
To run all tests in the current file:
function()
require("neotest").run.run(vim.fn.expand("%"))
end,
To run all tests in the current project:
function()
require("neotest").run.run(vim.fn.getcwd())
end,
Can you try these and see if they work?
@catanzaromj yes, they both work for me.
I also think something was wrong with my setup, because now the require("neotest").run.run(vim.loop.cwd())
command works too... 🤷 😆
I'll close this issue.
Hi! 👋
I'm using LazyVim and it comes with a pre-configured command (click "full spec") for running all tests:
However, this command does nothing for me.
I've got my neotest-python adapter set up like this (full config here):
Am I doing something wrong here?
More info:
require("neotest").run.run()
.require("neotest").run.run({ suite = true })
althought it makes neovim really slow for quite some time, even after all tests have executed.Steps to reproduce:
require("neotest").run.run(vim.loop.cwd())
command via LazyVim's preconfigured<leader>tT
.