-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
39 lines (28 loc) · 803 Bytes
/
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
FILTER ?= .*
NVIM_TEST_VERSION ?= v0.10.4
NVIM_RUNNER_VERSION ?= v0.10.4
nvim-test:
git clone --depth 1 https://github.com/lewis6991/nvim-test
nvim-test/bin/nvim-test --init
vim-snippets:
git clone --depth 1 https://github.com/honza/vim-snippets
export TEST_COLORS ?= 1
export BUSTED_ARGS = -v --lazy --shuffle \
--filter=$(FILTER) \
--lpath=$(PWD)/test/functional/?.lua
functionaltest: nvim-test
nvim-test/bin/nvim-test test/functional \
--lpath=$(PWD)/lua/?.lua \
--lpath=$(PWD)/test/functional/?.lua \
--target_version $(NVIM_TEST_VERSION) \
--runner_version $(NVIM_RUNNER_VERSION) \
--verbose \
--coverage
-@stty sane
unittest: vim-snippets
vusted --shuffle test/unit
test: functionaltest unittest
stylua-check:
stylua -c lua/ test/
stylua-format:
stylua lua/ test/