diff --git a/lua/neotest-golang/logging.lua b/lua/neotest-golang/logging.lua index 0242baf8..3cd8fdc6 100644 --- a/lua/neotest-golang/logging.lua +++ b/lua/neotest-golang/logging.lua @@ -7,8 +7,6 @@ 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 fbf8444b..96199479 100644 --- a/lua/neotest-golang/process.lua +++ b/lua/neotest-golang/process.lua @@ -131,7 +131,7 @@ function M.test_results(spec, result, tree) end -- DEBUG: enable the following to see the final Neotest result. - -- logger.debug(vim.inspect(neotest_results)) + -- logger.debug(vim.inspect(neotest_result)) return neotest_result end diff --git a/lua/neotest-golang/runspec/dir.lua b/lua/neotest-golang/runspec/dir.lua index 84a21e4f..237d0ac6 100644 --- a/lua/neotest-golang/runspec/dir.lua +++ b/lua/neotest-golang/runspec/dir.lua @@ -57,6 +57,7 @@ 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 2d30d855..531304ec 100644 --- a/lua/neotest-golang/runspec/file.lua +++ b/lua/neotest-golang/runspec/file.lua @@ -71,6 +71,7 @@ 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 80b9c521..4165ea46 100644 --- a/lua/neotest-golang/runspec/namespace.lua +++ b/lua/neotest-golang/runspec/namespace.lua @@ -38,6 +38,7 @@ 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 3bcd3375..b9a3a058 100644 --- a/lua/neotest-golang/runspec/test.lua +++ b/lua/neotest-golang/runspec/test.lua @@ -54,6 +54,7 @@ function M.build(pos, strategy) run_spec.context.parse_test_results = false end + logger.debug({ "RunSpec:", run_spec }) return run_spec end