notomo / vusted

A busted wrapper for testing neovim plugin

Home Page:https://luarocks.org/modules/notomo/vusted

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vusted

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.

$ vusted
ok 1 - vusted can use vim module
printed
ok 2 - vusted can print
1..2

Helper functions

See vusted.helper'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

About

A busted wrapper for testing neovim plugin

https://luarocks.org/modules/notomo/vusted

License:MIT License


Languages

Language:Lua 88.5%Language:Vim Script 5.9%Language:Makefile 3.2%Language:Batchfile 1.3%Language:Shell 1.1%