diff --git a/lua/neotest-golang/runspec/dir.lua b/lua/neotest-golang/runspec/dir.lua index 810259dc..9fd76321 100644 --- a/lua/neotest-golang/runspec/dir.lua +++ b/lua/neotest-golang/runspec/dir.lua @@ -116,7 +116,7 @@ function M.build(pos) --- @type neotest.RunSpec local run_spec = { command = test_cmd, - cwd = go_mod_folderpath, + cwd = pos.path, context = context, }