Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nvim-neotest/neotest-plenary


https://github.com/nvim-neotest/neotest-plenary

lua neovim plenary

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# neotest-plenary

[Neotest](https://github.com/rcarriga/neotest) adapter for [plenary.nvim](https://github.com/nvim-lua/plenary.nvim) busted tests.

![image](https://user-images.githubusercontent.com/24252670/158066001-713829a6-c515-4dbe-84eb-3a486a3142d5.png)

This is WIP as use cases are discovered. Currently any `minimal_init.lua/vim` will be used when running tests.
If you have extra requirements for running tests, please raise an issue to discuss incorporating it into this adapter.

Requires [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) and the parser for lua.

```lua
require("neotest").setup({
adapters = {
require("neotest-plenary"),
},
})
```

## Minimal `init.lua`

By default, `neotest-plenary` will glob for:

- `*/testrc*`
- `*/minimal_init*`
- `test*/init.vim`

Or, you can specify the exact file to use via:

```lua
require("neotest").setup({
adapters = {
require("neotest-plenary").setup({
min_init = "./path/to/test_init.lua",
}),
},
})
```