Skip to content
This repository was archived by the owner on Jul 26, 2026. It is now read-only.

Latest commit

 

History

93 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vusted

Warning

This project is no longer maintained. No further updates, bug fixes or releases are planned. The repository and the luarocks module are kept available so that existing users are not broken, but please consider migrating to one of the alternatives below.

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
  • VUSTED_DISABLE_EXIT
    • vusted does not exit if VUSTED_DISABLE_EXIT exists. Use to check neovim state interactively after test execution.
    • example: VUSTED_DISABLE_EXIT=1 VUSTED_DISABLE_CLEANUP=1 VUSTED_ARGS=--clean vusted --filter 'vusted can print'
    • default: nil
  • VUSTED_DISABLE_CLEANUP
    • vusted.helper.cleanup() and vusted.helper.cleanup_loaded_modules() do nothing if VUSTED_DISABLE_CLEANUP exists.
    • default: nil

About

A busted wrapper for testing neovim plugin

Topics

Resources

Stars

89 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages