-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
32 lines (26 loc) · 986 Bytes
/
justfile
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
_default:
just --list
# Download the test dependencies
prepare:
#!/usr/bin/env sh
if [ ! -d "deps/mini.nvim" ]; then
git clone --filter=blob:none git@github.com:echasnovski/mini.nvim.git deps/mini.nvim
fi
if [ ! -d "deps/dressing.nvim" ]; then
git clone --filter=blob:none git@github.com:stevearc/dressing.nvim.git -b v3.1.0 deps/dressing.nvim
fi
if [ ! -d "deps/cmp.nvim" ]; then
git clone --filter=blob:none git@github.com:hrsh7th/nvim-cmp.git deps/cmp.nvim
fi
# Run all test files
test:
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run()"
# Run all test files, but update all screenshots
test-update:
UPDATE_SCREENSHOTS=true just test
# Run test a single test file
test-file FILE:
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run_file('{{FILE}}')"
# Run test a single test file, but update all screenshots
test-file-update FILE:
UPDATE_SCREENSHOTS=true just test_file "{{FILE}}"