summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/testnvim.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2026-03-25 13:33:17 +0000
committerLewis Russell <lewis6991@gmail.com>2026-04-15 12:09:25 +0100
commit55f9c2136e52d8719495b6021ce7e8d64c5141fe (patch)
tree0f2b934f30af2b232453b3e676fd9cd7f32e7957 /test/functional/testnvim.lua
parente289f9579c73b4f6da105dfad87bd90e0dc6d973 (diff)
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/testnvim.lua')
-rw-r--r--test/functional/testnvim.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/testnvim.lua b/test/functional/testnvim.lua
index 5743331032..a1515b458b 100644
--- a/test/functional/testnvim.lua
+++ b/test/functional/testnvim.lua
@@ -1,6 +1,7 @@
local uv = vim.uv
local t = require('test.testutil')
-local busted = require('busted')
+---@type test.harness
+local harness = require('test.harness')
local Session = require('test.client.session')
local uv_stream = require('test.client.uv_stream')
@@ -528,7 +529,7 @@ function M.new_session(keep, ...)
return new_session
end
-busted.subscribe({ 'suite', 'end' }, function()
+harness.on_suite_end(function()
M.check_close(true)
local timed_out = false
local timer = assert(vim.uv.new_timer())