-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 680 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 680 Bytes
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
.PHONY: test test-race test-frontend lint coverage bench bench-matcher clean
test:
go test ./backend/... -short -timeout 60s
test-race:
go test ./backend/... -short -timeout 60s -race
test-frontend:
cd frontend && npm ci && npx tsc --noEmit
lint:
golangci-lint run ./backend/...
coverage:
go test ./backend/... -short -timeout 60s -covermode=atomic \
-coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
go tool cover -func=coverage.out
bench:
go test ./backend/... -bench=. -benchmem -run='^$$' -timeout 120s
bench-matcher:
go test ./backend/... -bench=BenchmarkLevenshtein -benchmem -run='^$$'
clean:
rm -f coverage.out coverage.html