refactor(test): testutils
This commit is contained in:
parent
bc48bd71f2
commit
1d45a443ff
6 changed files with 72 additions and 30 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue