It requires nvim-treesitter
Make sure you have the bash parser installed. Use
:TSInstall bash
Plug 'rcasia/neotest-bash'
NOTE: this plugin depends on the
bashunit
binary to work.
require("neotest").setup({
adapters = {
require("neotest-bash")
}
})
You can optionally supply configuration settings:
require("neotest").setup({
adapters = {
require("neotest-bash")({
-- Custom bashunit path for the runner.
-- Can be a string (absolute or relative to repo root/cwd).
-- If not provided, the path will be inferred by checking for
-- lib/bashunit in your repo root/cwd, or for bashunit on the $PATH
executable = "path/to/bashunit/executable",
})
}
})