Skip to content

HiPhish/neotest-busted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neotest-Busted

Any sufficiently complicated Lua test framework contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Busted.

This is a Neotest adapter for Busted, a Lua test framework.

Screenshot of Neovim showing off the Neotest summary with busted tests

Warning

The configuration file .busted contains executable Lua code and will be executed when looking for test files.

Installation

Install it like any other Neovim plugin. Requires Neotest to be installed as well, and busted to be in the $PATH. It does not matter how you install Busted; personally I prefer to use Luarocks.

Configuration

The adapter name is Busted. There is no additional configuration needed beyond the usual Neotest configuration. You can give an explicit path to the Busted binary by setting the g:bustedprg variable, otherwise the default busted is used.

Status of the plugin

It works, but there might be some edge cases that are not handled properly yet. Features I have not yet attempted:

  • Debugging
  • Coloured output

License

Licensed under the terms of the MIT (Expat) license. See the LICENSE file for details.

Alternatives

Here are some other projects with similar goals.