Summary: Right now we are using a custom test runner. This move the suite over to busted, this will make things much more maintainable going forward. The two main reasons for moving are. 1) The custom runner as some bugs, when running assertions we are not getting the correct results. 2) All of the busted mocking features. We can use spy and mock, this will allow us to remove the nvim_mock. This file is not amazing and confuses the lsp often. Test Plan: CI
8 lines
286 B
Lua
Executable file
8 lines
286 B
Lua
Executable file
-- Script to run the busted cli tool. You can use this under nvim using be
|
|
-- below command. Any arguments can be passed in the same as the busted cli.
|
|
--
|
|
-- ```bash
|
|
-- nvim -l scripts/busted.lua
|
|
-- ```
|
|
vim.opt.rtp:append(vim.fn.getcwd())
|
|
require "busted.runner" { standalone = false }
|