Skip to content

rcasia/neotest-bash

Repository files navigation

neotest-bash

Neotest adapter for Bash, using bashunit

image

🔧 Installation

It requires nvim-treesitter

Make sure you have the bash parser installed. Use :TSInstall bash

vim-plug

Plug 'rcasia/neotest-bash'

NOTE: this plugin depends on the bashunit binary to work.

⚙ Configuration

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

About

Neotest adapter for Bash.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 3

  •  
  •  
  •