-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (15 loc) · 712 Bytes
/
Copy pathMakefile
File metadata and controls
20 lines (15 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Run all test files
test: deps/mini.nvim deps/plenary.nvim deps/blink.cmp
rm -rf /tmp/zola_nvim_testing/
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run()"
# Run test from file at `$FILE` environment variable
test_file: deps/mini.nvim
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run_file('$(FILE)')"
# Download 'mini.nvim' to use its 'mini.test' testing module
deps/mini.nvim:
@mkdir -p deps
git clone --filter=blob:none https://github.com/nvim-mini/mini.nvim $@
deps/plenary.nvim:
git clone --filter=blob:none https://github.com/nvim-lua/plenary.nvim $@
deps/blink.cmp:
git clone --filter=blob:none https://github.com/saghen/blink.cmp $@