-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
16 lines (13 loc) · 625 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
GROUP_DEPTH ?= 1
NVIM_EXEC ?= nvim
all: test
test:
$(NVIM_EXEC) --version | head -n 1 && echo ''
$(NVIM_EXEC) --headless --noplugin -u ./tests/minimal_init.lua \
-c "lua require('mini.test').setup()" \
-c "lua MiniTest.run({ execute = { reporter = MiniTest.gen_reporter.stdout({ group_depth = $(GROUP_DEPTH) }) } })"
test_file:
$(NVIM_EXEC) --version | head -n 1 && echo ''
$(NVIM_EXEC) --headless --noplugin -u ./tests/minimal_init.lua \
-c "lua require('mini.test').setup()" \
-c "lua MiniTest.run_file('$(FILE)', { execute = { reporter = MiniTest.gen_reporter.stdout({ group_depth = $(GROUP_DEPTH) }) } })"