refactor(test): testutils

This commit is contained in:
Oleksandr Smirnov 2025-02-18 16:45:43 +02:00
parent bc48bd71f2
commit 1d45a443ff
No known key found for this signature in database
6 changed files with 72 additions and 30 deletions

View file

@ -5,10 +5,21 @@ local T = MiniTest.new_set {
hooks = {
post_once = child.stop,
pre_case = function()
child.restart { "-u", "scripts/minimal_init.lua" }
child.restart { "-u", t.mininit_path }
end,
},
}
T["gotest"] = MiniTest.new_set {}
T["gotests"] = MiniTest.new_set {}
--- NOTE: :GoTestAdd is the only place that has actual logic
--- All other parts are handled `gotests` tool itself.
T["gotests"]["should add test for function under cursor"] = function()
MiniTest.skip "come back daddy"
end
T["gotests"]["should add test for method under cursor"] = function()
MiniTest.skip "come back daddy"
end
return T