47 lines
1.1 KiB
Lua
47 lines
1.1 KiB
Lua
-- Neotest: test runner with Go and Python adapters.
|
|
-- Loads on go/python filetypes, or when require("neotest") is called from a
|
|
-- keymap (config.keymap wraps the bindings in `function() require(...) end`
|
|
-- precisely so the lazy-load can happen.
|
|
|
|
return {
|
|
{
|
|
"nvim-neotest/neotest",
|
|
lazy = true,
|
|
ft = { "go", "ptyhon" },
|
|
dependencies = {
|
|
"nvim-neotest/nvim-nio",
|
|
"nvim-lua/plenary.nvim",
|
|
"antoinemadec/FixCursorHold.nvim",
|
|
|
|
-- Adapters
|
|
"nvim-neotest/neotest-go",
|
|
"nvim-neotest/neotest-python",
|
|
},
|
|
config = function()
|
|
require("neotest").setup({
|
|
log_level = vim.log.levels.WARN,
|
|
discovery = {
|
|
enabled = true,
|
|
concurrent = 0,
|
|
},
|
|
running = {
|
|
concurrent = true,
|
|
},
|
|
adapters = {
|
|
require("neotest-go")({
|
|
experimental = {
|
|
test_table = true,
|
|
},
|
|
args = { "-count=1", "-race" },
|
|
}),
|
|
|
|
require("neotest-python")({
|
|
dap = { justMyCode = false },
|
|
args = { "--disable-warnings", "-q" },
|
|
}),
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
}
|