diff --git a/lua/neotest-golang/logging.lua b/lua/neotest-golang/logging.lua index 3cd8fdc6..0242baf8 100644 --- a/lua/neotest-golang/logging.lua +++ b/lua/neotest-golang/logging.lua @@ -7,6 +7,8 @@ local prefix = "[neotest-golang] " local function clean_output(str) -- Replace escaped newlines and tabs with spaces + str = str:gsub("\\n", " "):gsub("\\t", " ") + -- Remove any remaining actual newlines and tabs str = str:gsub("[\n\t]", " ") -- Collapse multiple spaces into one str = str:gsub("%s+", " ") diff --git a/lua/neotest-golang/process.lua b/lua/neotest-golang/process.lua index 791c566e..fbf8444b 100644 --- a/lua/neotest-golang/process.lua +++ b/lua/neotest-golang/process.lua @@ -131,8 +131,7 @@ function M.test_results(spec, result, tree) end -- DEBUG: enable the following to see the final Neotest result. - -- logger.debug(vim.inspect(res)) - -- logger.debug(vim.inspect(neotest_result)) + -- logger.debug(vim.inspect(neotest_results)) return neotest_result end diff --git a/lua/neotest-golang/runspec/dir.lua b/lua/neotest-golang/runspec/dir.lua index 237d0ac6..84a21e4f 100644 --- a/lua/neotest-golang/runspec/dir.lua +++ b/lua/neotest-golang/runspec/dir.lua @@ -57,7 +57,6 @@ function M.build(pos) context = context, } - logger.debug({ "RunSpec:", run_spec }) return run_spec end diff --git a/lua/neotest-golang/runspec/file.lua b/lua/neotest-golang/runspec/file.lua index 531304ec..2d30d855 100644 --- a/lua/neotest-golang/runspec/file.lua +++ b/lua/neotest-golang/runspec/file.lua @@ -71,7 +71,6 @@ function M.build(pos, tree) context = context, } - logger.debug({ "RunSpec:", run_spec }) return run_spec end diff --git a/lua/neotest-golang/runspec/namespace.lua b/lua/neotest-golang/runspec/namespace.lua index 4165ea46..80b9c521 100644 --- a/lua/neotest-golang/runspec/namespace.lua +++ b/lua/neotest-golang/runspec/namespace.lua @@ -38,7 +38,6 @@ function M.build(pos) context = context, } - logger.debug({ "RunSpec:", run_spec }) return run_spec end diff --git a/lua/neotest-golang/runspec/test.lua b/lua/neotest-golang/runspec/test.lua index b9a3a058..3bcd3375 100644 --- a/lua/neotest-golang/runspec/test.lua +++ b/lua/neotest-golang/runspec/test.lua @@ -54,7 +54,6 @@ function M.build(pos, strategy) run_spec.context.parse_test_results = false end - logger.debug({ "RunSpec:", run_spec }) return run_spec end