diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2026-03-25 13:33:17 +0000 |
|---|---|---|
| committer | Lewis Russell <lewis6991@gmail.com> | 2026-04-15 12:09:25 +0100 |
| commit | 55f9c2136e52d8719495b6021ce7e8d64c5141fe (patch) | |
| tree | 0f2b934f30af2b232453b3e676fd9cd7f32e7957 /test/functional/lua/buffer_updates_spec.lua | |
| parent | e289f9579c73b4f6da105dfad87bd90e0dc6d973 (diff) | |
| download | rneovim-55f9c2136e52d8719495b6021ce7e8d64c5141fe.tar.gz rneovim-55f9c2136e52d8719495b6021ce7e8d64c5141fe.tar.bz2 rneovim-55f9c2136e52d8719495b6021ce7e8d64c5141fe.zip | |
test: replace busted with local harness
Replace the busted-based Lua test runner with a repo-local harness.
The new harness runs spec files directly under `nvim -ll`, ships its own
reporter and lightweight `luassert` shim, and keeps the helper/preload
flow used by the functional and unit test suites.
Keep the file boundary model shallow and busted-like by restoring `_G`,
`package.loaded`, `package.preload`, `arg`, and the process environment
between files, without carrying extra reset APIs or custom assertion
machinery.
Update the build and test entrypoints to use the new runner, add
black-box coverage for the harness itself, and drop the bundled
busted/luacheck dependency path.
AI-assisted: Codex
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
| -rw-r--r-- | test/functional/lua/buffer_updates_spec.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/lua/buffer_updates_spec.lua b/test/functional/lua/buffer_updates_spec.lua index e1a46589f2..bf2b8e2626 100644 --- a/test/functional/lua/buffer_updates_spec.lua +++ b/test/functional/lua/buffer_updates_spec.lua @@ -8,7 +8,6 @@ local api = n.api local fn = n.fn local clear = n.clear local eq = t.eq -local fail = t.fail local exec_lua = n.exec_lua local feed = n.feed local expect_events = t.expect_events @@ -507,7 +506,7 @@ describe('lua: nvim_buf_attach on_bytes', function() for _, event in ipairs(events) do for _, elem in ipairs(event) do if type(elem) == 'number' and elem < 0 then - fail(string.format('Received event has negative values')) + error('Received event has negative values') end end |