46517953e5
- add lua modules for spec parsing, lock state, fs helpers and the installer - add ArtiPackSync/ArtiPackClean/ArtiPackList commands and help doc - add headless nvim test harness and specs - add make test/lint/fmt/pre-commit and patch/minor/major bump targets - add woodpecker test, lint and pre-commit pipelines
16 lines
391 B
Lua
16 lines
391 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' }) do
|
|
require('tests.' .. name)
|
|
end
|
|
|
|
os.exit(t.report() and 0 or 1)
|