-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
32 lines (22 loc) · 992 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
# Justfile for running tests
default:
@just --list
# Recipe to run the test for YouTube template
# nvim --headless -u nvim/tests/test_init.lua "PlenaryBustedDirectory nvim/tests/"
# Install locally and globally
install:
@cd py && uv venv
@cd py && . .venv/bin/activate
@cd py && uv pip install --upgrade --editable .
global-install: install
@cd py && uv tool install --force --editable . --python $(which python3.12)
# Justfile
# Run all tests in the tests/ directory using minimal_init
test:
@nvim --headless --clean -u nvim/min_test_init.lua -c "PlenaryBustedDirectory ./nvim/tests/ { minimal_init = 'nvim/min_test_init.lua' }" -c "qa!"
# Run a specific test file, use with just test_file FILE=your_test_file.lua
test_file FILE:
@nvim --headless --clean -u nvim/tests/min_test_init.lua -c "PlenaryBustedFile {{FILE}}" -c "qa"
# Recipe to run the test for YouTube template with verbose output
test-verbose:
echo "Running tests with verbose output"