-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
46 lines (39 loc) · 1.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
TESTS_INIT = tests/minimal_init.lua
# 30 mins
TIMEOUT_MINS := $(shell echo $$((30 * 60 * 1000)))
.PHONY: test
.PHONY: test-sequential
.PHONY: test-all
.PHONY: test-all-sequential
.PHONY: check
test:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua require([[plenary.test_harness]]).test_directory([[tests ! -regex .*_config.*_spec.*]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", })"
test-sequential:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua require([[plenary.test_harness]]).test_directory([[tests ! -regex .*_config.*_spec.*]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", sequential = true, })"
test-all:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua require([[plenary.test_harness]]).test_directory([[tests]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", })"
test-all-sequential:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua require([[plenary.test_harness]]).test_directory([[tests]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", sequential = true, })"
check:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c 'quit'
@LUA_LS_CONFIGPATH=scripts/internal/.luarc.json nvim -l scripts/internal/__lua_language_server_check.lua