bb596db3c1
CI / test (pull_request) Successful in 14s
CI / review (gpt-4.1, gpt, GPT_REVIEW_TOKEN) (pull_request) Successful in 22s
CI / review (gpt-5, security, SECURITY_REVIEW.md, SECURITY_REVIEW_TOKEN) (pull_request) Successful in 39s
CI / review (gpt-5, sonnet, SONNET_REVIEW_TOKEN) (pull_request) Successful in 1m6s
Partially addresses #32 - Tests for setupLogger, isPatternFile, evaluateCIStatus, envOrDefault*, validateReviewerName - Subprocess tests for main() error paths (version, missing flags, invalid inputs) - Integration test scaffold (build tag: integration) - Makefile with build/test/lint/coverage targets - Coverage: 16.7% → 42.3% for cmd/review-bot
21 lines
320 B
Makefile
21 lines
320 B
Makefile
.PHONY: build test test-integration lint clean
|
|
|
|
build:
|
|
go build -o review-bot ./cmd/review-bot/
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
test-integration:
|
|
go test -tags integration -v ./cmd/review-bot/
|
|
|
|
lint:
|
|
go vet ./...
|
|
|
|
clean:
|
|
rm -f review-bot
|
|
|
|
coverage:
|
|
go test -coverprofile=coverage.out ./...
|
|
go tool cover -func=coverage.out
|