https://github.com/hiphish/neotest-busted
Neotest adapter for running busted tests.
https://github.com/hiphish/neotest-busted
busted lua neotest neovim neovim-plugin testing
Last synced: about 1 year ago
JSON representation
Neotest adapter for running busted tests.
- Host: GitHub
- URL: https://github.com/hiphish/neotest-busted
- Owner: HiPhish
- License: mit
- Created: 2024-02-26T00:06:42.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-05T16:48:58.000Z (over 1 year ago)
- Last Synced: 2025-03-27T10:51:16.338Z (about 1 year ago)
- Topics: busted, lua, neotest, neovim, neovim-plugin, testing
- Language: Lua
- Homepage: https://gitlab.com/HiPhish/neotest-busted
- Size: 63.5 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
.. default-role:: code
################
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.
.. image:: https://github.com/HiPhish/neotest-busted/assets/4954650/4ca74545-ca95-4e0b-ad32-b8d89c51b4f5
:alt: 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.
- `MisanthropicBit/neotest-busted`_
- `nvim-neotest/neotest-plenary`_
.. _Busted: https://lunarmodules.github.io/busted/
.. _Neotest: https://github.com/nvim-neotest/neotest
.. _Luarocks: https://luarocks.org/
.. _LICENSE: LICENSE.txt
.. _`MisanthropicBit/neotest-busted`: https://github.com/MisanthropicBit/neotest-busted
.. _`nvim-neotest/neotest-plenary`: https://github.com/nvim-neotest/neotest-plenary