An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          




neotest-bash


Neotest adapter for Bash, using bashunit

![image](https://github.com/rcasia/neotest-bash/assets/31012661/e9c1c928-7136-4c29-a17c-cf70c971ca76)

## 🔧 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",
})
}
})
```