-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile.test
More file actions
40 lines (33 loc) · 1.12 KB
/
Makefile.test
File metadata and controls
40 lines (33 loc) · 1.12 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
# Run unit tests for a specific component
.PHONY: test-parser
test-parser:
@echo "Running parser tests..."
go test -v ./internal/ai/gemini/tests -run TestParseResponse
.PHONY: test-prompt
test-prompt:
@echo "Running prompt construction tests..."
go test -v ./internal/ai/gemini/tests -run TestConstructPrompt
.PHONY: test-api
test-api:
@echo "Running API tests..."
go test -v ./internal/ai/gemini/tests -run TestCallGeminiAPI
.PHONY: test-gitlab-mr
test-gitlab-mr:
@echo "Running GitLab MR tests..."
go test -v ./internal/providers/gitlab/tests -run TestGetMergeRequestContext
.PHONY: test-gitlab-comments
test-gitlab-comments:
@echo "Running GitLab comments tests..."
go test -v ./internal/providers/gitlab/tests -run TestPostComments
.PHONY: test-pipeline
test-pipeline:
@echo "Running pipeline tests..."
go test -v ./tests -run TestCompletePipeline
.PHONY: test-mr335
test-mr335:
@echo "Running MR 335 details test..."
go test -v ./tests -run TestFetchMR335Details
# Run all tests
.PHONY: test-all
test-all: test-parser test-prompt test-api test-gitlab-mr test-gitlab-comments test-pipeline
@echo "All tests completed!"