diff --git a/lua/neotest-golang/parse.lua b/lua/neotest-golang/parse.lua index d796e760..5fe03fb4 100644 --- a/lua/neotest-golang/parse.lua +++ b/lua/neotest-golang/parse.lua @@ -28,6 +28,17 @@ local M = {} --- @param tree neotest.Tree --- @return table function M.results(spec, result, tree) + if spec.context.skip == true then + ---@type table + local results = {} + results[spec.context.id] = { + ---@type neotest.ResultStatus + status = "skipped", -- default value + } + + return results + end + --- The Neotest position tree node for this execution. --- @type neotest.Position local pos = tree:data()