-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (58 loc) · 1.85 KB
/
Makefile
File metadata and controls
67 lines (58 loc) · 1.85 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.PHONY: test test-unit test-integration validate clean lint format format-check help
# Default target
help:
@echo "Available commands:"
@echo " test - Run all tests"
@echo " test-unit - Run unit tests only"
@echo " test-integration - Run integration tests only"
@echo " validate - Run validation script"
@echo " lint - Run luacheck linting"
@echo " format - Format code with stylua"
@echo " format-check - Check code formatting"
@echo " clean - Clean up test artifacts"
# Run all tests
test: test-unit test-integration validate
# Run unit tests
test-unit:
@echo "Running unit tests..."
@lua test/test_config.lua
@lua test/test_utils.lua
@lua test/test_highlights.lua
@lua test/test_preview.lua
@lua test/test_health.lua
@lua test/test_terminal.lua
@lua test/test_installer.lua
@lua test/test_init.lua
@echo "✓ All unit tests passed"
# Run integration tests
test-integration:
@echo "Running integration tests..."
@lua test/run_integration.lua
@echo "✓ Integration tests completed"
# Run validation
validate:
@echo "Running validation..."
@lua scripts/validate.lua
@echo "✓ Validation completed"
# Run luacheck linting
lint:
@echo "Running luacheck linting..."
@luacheck lua/ test/ scripts/validate.lua --exclude-files test/plenary.nvim --no-max-line-length
@echo "✓ Linting completed"
# Format code with stylua
format:
@echo "Formatting code with stylua..."
@stylua lua/ plugin/ test/ scripts/validate.lua
@echo "✓ Code formatting completed"
# Check code formatting
format-check:
@echo "Checking code formatting..."
@stylua --check lua/ plugin/ test/ scripts/validate.lua
@echo "✓ Code formatting check completed"
# Clean up test artifacts
clean:
@echo "Cleaning up..."
@rm -f luacov.report.out luacov.stats.out
@rm -rf luacov-html/
@rm -f *.tmp *.temp
@echo "✓ Cleanup completed"