https://github.com/rcasia/neotest-bash
Neotest adapter for Bash.
https://github.com/rcasia/neotest-bash
bash lua neotest neovim
Last synced: about 2 months ago
JSON representation
Neotest adapter for Bash.
- Host: GitHub
- URL: https://github.com/rcasia/neotest-bash
- Owner: rcasia
- License: mit
- Created: 2023-09-10T23:58:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-19T09:23:20.000Z (3 months ago)
- Last Synced: 2025-12-22T03:16:16.277Z (3 months ago)
- Topics: bash, lua, neotest, neovim
- Language: Lua
- Homepage:
- Size: 43 KB
- Stars: 26
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
neotest-bash
Neotest adapter for Bash, using bashunit

## 🔧 Installation
It requires [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
>Make sure you have the bash parser installed. Use `:TSInstall bash`
[vim-plug](https://github.com/junegunn/vim-plug)
```vim
Plug 'rcasia/neotest-bash'
```
> **NOTE**: this plugin depends on the `bashunit` binary to work.
## âš™ Configuration
```lua
require("neotest").setup({
adapters = {
require("neotest-bash")
}
})
```
You can optionally supply configuration settings:
```lua
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",
})
}
})
```