Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nvim-neotest/neotest-vim-test
Neotest adapter for vim-test
https://github.com/nvim-neotest/neotest-vim-test
lua neovim testing vim vim-test
Last synced: 3 months ago
JSON representation
Neotest adapter for vim-test
- Host: GitHub
- URL: https://github.com/nvim-neotest/neotest-vim-test
- Owner: nvim-neotest
- Created: 2022-03-13T14:56:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T08:38:10.000Z (over 1 year ago)
- Last Synced: 2024-05-05T15:33:20.423Z (6 months ago)
- Topics: lua, neovim, testing, vim, vim-test
- Language: Lua
- Size: 10.7 KB
- Stars: 24
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# neotest-vim-test
[Neotest](https://github.com/rcarriga/neotest) adapter for vim-test.
Supports running any test runner that is supported by vim-test.
Any existing vim-test configuration should work out of the box.Requires [vim-test](https://github.com/vim-test/vim-test/) to be installed.
It is recommended to add any filetypes that are covered by another adapter to the ignore list.
```lua
require("neotest").setup({
adapters = {
..., -- Any other adapters
require("neotest-vim-test")({ ignore_filetypes = { "python", "lua" } }),
-- Or to only allow specified file types
require("neotest-vim-test")({ allow_file_types = { "haskell", "elixir" } }),
}
})
```## Issues
This is a simple wrapper around vim-test.
There are several features lacking that more integrated adapters will have along with bugs that can't be fixed:- No error diagnostics
- Performance issues
- Tests are all run in separate processes
- Has to communicate with vimscript for a lot of the functionality which requires synchronous code
- There may be false positives on what files are test files (e.g. all `.vim` files are detected as test files) due to how vim-test detects files.
- Multiple languages run in the same suiteThis adapter should only be used if there is no alternative available for your test runner.