-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 728 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 728 Bytes
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
# Makefile for ECA Neovim plugin testing
.PHONY: test test-file deps clean
# Download dependencies for testing
deps: deps/mini.nvim deps/nui.nvim
deps/mini.nvim:
mkdir -p deps
git clone --filter=blob:none https://github.com/echasnovski/mini.nvim deps/mini.nvim
deps/nui.nvim:
mkdir -p deps
git clone --filter=blob:none https://github.com/MunifTanjim/nui.nvim deps/nui.nvim
# Run all tests
test: deps
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run()"
# Run a specific test file
# Usage: make test-file FILE=tests/test_example.lua
test-file: deps
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run_file('$(FILE)')"
# Clean up dependencies
clean:
rm -rf deps/