-
Notifications
You must be signed in to change notification settings - Fork 19
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
bug: Test(s) not associated (not found/executed) #193
Comments
Hi @julien-h this has been reported in the past.
In essence, when the It would be interesting (for me) to better understand what is the root cause in your case. You can enable DEBUG-level logging (details in the README) and attach the logs here. It will cast light on what the test command output looks like, when captured by the adapter. There's a workaround for now, which means installing gotestsum and configuring |
Hello, thank you for your reply. Here is the output with DEBUG enabled: logs
|
I have added gotestsum in the configuration but sadly I still have the same problem. Here is how I added the configuration: lua configreturn {
{
"nvim-neotest/neotest",
optional = true,
dependencies = {
"fredrikaverpil/neotest-golang",
},
opts = {
adapters = {
["neotest-golang"] = {
-- Here we can set options for neotest-golang, e.g.
-- go_test_args = { "-v", "-race", "-count=1", "-timeout=60s" },
dap_go_enabled = true, -- requires leoluz/nvim-dap-go
runner = "gotestsum",
},
},
},
},
} And here is the debug output: logs
|
Here's the output of both
output
output
output
|
After a few tests, the command Thank you for your help :) And thank you so much for this awesome plugin! |
Aha! Maybe I should remove I'm glad to hear it works for you now! |
As a side note, I'd be in favor of keeping it. Good production-ready defaults are great! |
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.1
Operating system/version
Windows 11
Output from
:checkhealth neotest-golang
Describe the bug
It seems that neotest-golang correctly finds the tests as they are displayed in the summary (see screenshot), but is unable to run them and triggers this warning instead:
Also note that running
:! go test .
works properly as expected.Steps To Reproduce
test-core
andgo
in the extra, which install neotest and neotest-golang. |<leader>tt
to run the tests.Expected Behavior
The test should run properly and says pass/fail
Your Lua setup
The text was updated successfully, but these errors were encountered: