Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nvim-neotest/neotest-plenary
https://github.com/nvim-neotest/neotest-plenary
lua neovim plenary
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nvim-neotest/neotest-plenary
- Owner: nvim-neotest
- License: mit
- Created: 2022-01-02T23:16:00.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-15T15:21:03.000Z (4 months ago)
- Last Synced: 2024-11-28T04:50:10.766Z (about 1 month ago)
- Topics: lua, neovim, plenary
- Language: Lua
- Size: 23.4 KB
- Stars: 41
- Watchers: 3
- Forks: 12
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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, with each instance of the adapter
having different configurations.```lua
require("neotest").setup({
projects = {
["~/Dev/my-plugin"] = require("neotest-plenary")({
min_init = "./path/to/test_init.lua",
}),
},
adapters = {
require("neotest-plenary"), -- Default globbing for all other projects
},
})
```