3190b30e97
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.
16 lines
404 B
Lua
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)
|