-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 1.03 KB
/
Copy pathMakefile
File metadata and controls
31 lines (26 loc) · 1.03 KB
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
.PHONY: test test-unit test-integration clean
# Run all tests
test:
@echo "Running all tests..."
nvim --headless -u tests/minimal_init.vim -c "PlenaryBustedDirectory tests/ { minimal_init = 'tests/minimal_init.vim' }"
# Run only unit tests
test-unit:
@echo "Running unit tests..."
nvim --headless -u tests/minimal_init.vim -c "PlenaryBustedDirectory tests/unit/ { minimal_init = 'tests/minimal_init.vim' }"
# Run only integration tests
test-integration:
@echo "Running integration tests..."
nvim --headless -u tests/minimal_init.vim -c "PlenaryBustedDirectory tests/integration/ { minimal_init = 'tests/minimal_init.vim' }"
# Clean up generated files
clean:
@echo "Cleaning up..."
@find . -name "*.log" -type f -delete
@echo "Clean complete!"
# Help
help:
@echo "Available targets:"
@echo " test - Run all tests"
@echo " test-unit - Run unit tests only"
@echo " test-integration - Run integration tests only"
@echo " clean - Clean up generated files"
@echo " help - Show this help message"