Closed fnune closed 1 year ago
Thanks for the report! This should be working now. Turns out it was a long standing bug that happened to be uncovered by some recent changes
Confirming this is now fixed! Thank you very much :)
I seem to be having a similar issue at the moment, here's my config
local neotest = require("neotest")
local neotest_python = require("neotest-python")
neotest.setup({
adapters = {
neotest_python,
},
output = { open_on_run = true },
})
neotest.setup_project("~/projects/work/work-project", {
adapters = {
neotest_python({
args = { "--dc", "WorkProject" },
}),
},
discovery = {
enabled = false,
},
})
The --dc
argument that's supposed to be specific to the work-project
seems to be bleeding into other projects, e.g. one at ~/projects/personal/personal-project
The --dc argument that's supposed to be specific to the work-project seems to be bleeding into other projects, e.g. one at ~/projects/personal/personal-project
I can confirm that I'm also seeing this behavior. A regression maybe?
same here
NeoVim Version
Describe the bug
I have a main Neovim config that runs this setup for Neotest:
A project-local
.nvim.lua
file does this instead:That works just fine. But when I try to use
setup_project
instead in the project-local config......then trying to run a test results in this:
This happens with
neotest-python
as well as withneotest-jest
.Expected behavior
Neotest merges configurations from the main Neovim config and the project-local
.nvim.lua
config. For things like adapters, Neotest takes the adapter from the project-local config. For other settings, such as:Those can be specified in the main Neovim config setup call for Neotest and they'll be respected in the
setup_project
call, where they can still be overwritten.Logs
I found no interesting logs. Basically ends in this: