blob: 486b213a75fe9e5cd8ddbb92a166eff6ed094c34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
vim.cmd([[set runtimepath+=.]])
vim.o.swapfile = false
vim.bo.swapfile = false
require("tests.test_util").reset_editor()
-- TODO test highlighting (both highlight.lua module and adding them in display.lua)
-- TODO test syntax highlighting when customizing delimiter
vim.api.nvim_create_user_command("RunTests", function(opts)
local path = opts.fargs[1] or "tests"
require("plenary.test_harness").test_directory(
path,
{ minimal_init = "./tests/minimal_init.lua" }
)
end, { nargs = "?" })
|