Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/notomo/vusted
A busted wrapper for testing neovim plugin
https://github.com/notomo/vusted
neovim neovim-plugin
Last synced: 3 months ago
JSON representation
A busted wrapper for testing neovim plugin
- Host: GitHub
- URL: https://github.com/notomo/vusted
- Owner: notomo
- License: mit
- Created: 2020-05-20T13:25:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-10T08:35:42.000Z (9 months ago)
- Last Synced: 2024-05-05T15:37:47.970Z (6 months ago)
- Topics: neovim, neovim-plugin
- Language: Lua
- Homepage: https://luarocks.org/modules/notomo/vusted
- Size: 43.9 KB
- Stars: 72
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vusted
[busted](https://github.com/lunarmodules/busted) wrapper for testing neovim plugin
## Requirements
- neovim## Installation
```
luarocks --lua-version=5.1 install vusted
```## Usage
vusted usage is almost the same as busted.
```console
$ vusted
ok 1 - vusted can use vim module
printed
ok 2 - vusted can print
1..2
```### Helper functions
See [vusted.helper](https://github.com/notomo/vusted/blob/master/lua/vusted/helper.lua)'s function comments.
### Environment variables
- `VUSTED_NVIM`
- vusted uses this command to execute neovim.
- default: `nvim`
- `VUSTED_ARGS`
- vusted uses this arguments to execute neovim.
- default: `--headless --clean`
- `VUSTED_SLOW`
- For example if you set 1000, output handler adds summary about the tests that elapsed 1000ms or more.
- can use only if the output handler is `vusted.default`.
- `VUSTED_USE_LOCAL`
- Set this flag to true or 1 if vusted was installed locally, e.g., with `luarocks install --local vusted`.
- default: nil