testing framework initial setup
parent
fa90b74e31
commit
eacdda76c6
@ -0,0 +1,22 @@
|
||||
PLENARY-DIR=../plenary.nvim
|
||||
PLENARY-REPO=https://github.com/nvim-lua/plenary.nvim.git
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
nvim --headless --noplugin -u tests/minimal_init.vim -c "lua require('plenary.test_harness').test_directory('tests/', { minimal_init = 'tests/minimal_init.vim', sequential = true, timeout = 120000 })"
|
||||
|
||||
.PHONY: test-file
|
||||
test-file:
|
||||
nvim --headless --noplugin -u tests/minimal_init.vim -c "lua require('plenary.busted').run(vim.loop.cwd()..'/'..[[$(FILE)]])"
|
||||
|
||||
|
||||
.PHONY: plenary
|
||||
plenary:
|
||||
@if [ ! -d $(PLENARY-DIR) ] ;\
|
||||
then \
|
||||
echo "Cloning plenary.nvim..."; \
|
||||
git clone $(PLENARY-REPO) $(PLENARY-DIR); \
|
||||
else \
|
||||
echo "Updating plenary.nvim..."; \
|
||||
git -C $(PLENARY-DIR) pull; \
|
||||
fi
|
@ -0,0 +1,14 @@
|
||||
local fn = vim.fn
|
||||
local api = vim.api
|
||||
|
||||
local fzf = require("fzf-lua")
|
||||
|
||||
describe("FzfLua", function()
|
||||
describe("configuration", function()
|
||||
it("initial setup", function()
|
||||
fzf.setup({})
|
||||
_G.dump(assert.is)
|
||||
assert.is.truthy(fzf)
|
||||
end)
|
||||
end)
|
||||
end)
|
@ -0,0 +1,6 @@
|
||||
set hidden
|
||||
set noswapfile
|
||||
|
||||
set rtp+=../plenary.nvim
|
||||
set rtp+=../fzf-lua
|
||||
runtime! plugin/plenary.vim
|
Loading…
Reference in New Issue