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.
Warning
The configuration file .busted
contains executable Lua code and will be
executed when looking for test files.
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.
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.
It works, but there might be some edge cases that are not handled properly yet. Features I have not yet attempted:
- Debugging
- Coloured output
Licensed under the terms of the MIT (Expat) license. See the LICENSE file for details.
Here are some other projects with similar goals.