-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (36 loc) · 1.02 KB
/
makefile
File metadata and controls
44 lines (36 loc) · 1.02 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
# Makefile for notion.nvim
.PHONY: test test-watch clean
# Default target
all: test
# Run tests
test:
@echo "Running tests..."
@busted --helper=tests/spec_helper.lua
# Run tests with coverage
test-coverage:
@echo "Running tests with coverage..."
@busted --helper=tests/spec_helper.lua --coverage
@luacov
# Watch tests (requires entr)
test-watch:
@echo "Watching for changes and running tests..."
@find . -name "*.lua" | entr -c make test
# Lint Lua files
lint:
@echo "Linting Lua files..."
@luacheck lua/ tests/ --globals vim
# Clean coverage files
clean:
@echo "Cleaning coverage files..."
@rm -f luacov.*.out
@rm -f luacov.report.out
# Help target
help:
@echo "Available targets:"
@echo " all - Run tests (default)"
@echo " test - Run tests"
@echo " test-coverage- Run tests with coverage report"
@echo " test-watch - Watch files and run tests on changes"
@echo " lint - Lint Lua files"
@echo " clean - Clean coverage files"
@echo " help - Show this help message"