Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/notomo/vusted

A busted wrapper for testing neovim plugin
https://github.com/notomo/vusted

neovim neovim-plugin

Last synced: about 2 months ago
JSON representation

A busted wrapper for testing neovim plugin

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