From 75b908ad629a7a6f790655e5dd2eee9f8669c89d Mon Sep 17 00:00:00 2001 From: ray-x Date: Tue, 31 Oct 2023 13:11:59 +1100 Subject: [PATCH] default test folder --- lua/go/gotest.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/go/gotest.lua b/lua/go/gotest.lua index 4ec2d8171..28c3fb6ba 100644 --- a/lua/go/gotest.lua +++ b/lua/go/gotest.lua @@ -405,7 +405,8 @@ M.get_testcase_name = function() end local function run_tests_with_ts_node(args, func_node, tblcase_ns) - local cmd, optarg, tags = cmd_builder('', args) + local fpath = M.get_test_path() + local cmd, optarg, tags = cmd_builder(fpath, args) local test_runner = _GO_NVIM_CFG.test_runner or 'go'