Files
arti-pack/tests/run.lua
T
unkin-agent 3190b30e97 Abort clean when a plugin spec fails to parse
An unparseable entry dropped out of the wanted set, so clean deleted the
directory and lock entry of a plugin the user still has configured.

Add tests/init_spec.lua covering setup, sync, clean and list.
2026-09-08 23:32:04 +10:00

16 lines
404 B
Lua

local root = vim.fn.fnamemodify(debug.getinfo(1, 'S').source:sub(2), ':p:h:h')
package.path = table.concat({
root .. '/lua/?.lua',
root .. '/lua/?/init.lua',
root .. '/?.lua',
package.path,
}, ';')
local t = require('tests.harness')
for _, name in ipairs({ 'spec_spec', 'fs_spec', 'lock_spec', 'installer_spec', 'init_spec' }) do
require('tests.' .. name)
end
os.exit(t.report() and 0 or 1)