Skip to content

Commit b956087

Browse files
agb-cloudclaude
andcommitted
feat: add test-unit and test-coverage targets to Makefile
Added missing Makefile targets required by CI/CD pipeline: - test-unit: runs unit tests with verbose output - test-coverage: generates coverage report These targets are required by .aoneci/cicd.yml pipeline. 🤖 Generated with [Claude Code] Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ad66a96 commit b956087

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ clean:
6767
test:
6868
go test ./... -cover
6969

70+
# Run unit tests
71+
.PHONY: test-unit
72+
test-unit:
73+
go test ./test/unit/... -v
74+
75+
# Generate test coverage report
76+
.PHONY: test-coverage
77+
test-coverage:
78+
go test ./test/unit/... -coverprofile=coverage.out
79+
go tool cover -html=coverage.out -o coverage.html
80+
7081
# Run linter
7182
.PHONY: lint
7283
lint:

0 commit comments

Comments
 (0)