Files
nvim-config/lua/overseer/template/user/odin_test.lua
T

21 lines
458 B
Lua

return {
name = "odin: test",
desc = "Run the tests (odin test .)",
condition = {
callback = function()
return vim.fn.glob("*.odin") ~= "" or vim.fn.expand("%:e") == "odin"
end,
},
builder = function()
return {
cmd = { "odin" },
args = { "test", "." },
components = {
"default",
"on_output_quickfix",
{ "on_complete_notify", statuses = { "SUCCESS", "FAILURE" } },
},
}
end,
}