forked from krisajenkins/telescope-docker.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (16 loc) · 736 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Run all test files
test: deps/mini.nvim deps/plenary.nvim deps/telescope.nvim
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/echasnovski/mini.nvim $@
deps/plenary.nvim:
@mkdir -p deps
git clone --filter=blob:none https://github.com/nvim-lua/plenary.nvim $@
deps/telescope.nvim:
@mkdir -p deps
git clone --filter=blob:none https://github.com/nvim-telescope/telescope.nvim $@