mirror of
https://github.com/neovim/neovim.git
synced 2026-06-16 16:51:19 +00:00
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
(cherry picked from commit 55f9c2136e)
26 lines
437 B
Lua
26 lines
437 B
Lua
--- @meta
|
|
|
|
--- @param name string
|
|
--- @param fn? fun()
|
|
function it(name, fn) end
|
|
|
|
--- @param name string
|
|
--- @param fn fun()
|
|
function describe(name, fn) end
|
|
|
|
--- @param name? string
|
|
--- @param block? fun()|string
|
|
function pending(name, block) end
|
|
|
|
--- @param fn fun()
|
|
function setup(fn) end
|
|
|
|
--- @param fn fun()
|
|
function before_each(fn) end
|
|
|
|
--- @param fn fun()
|
|
function after_each(fn) end
|
|
|
|
--- @param fn fun()
|
|
function teardown(fn) end
|