refactor(test): update test commands to include all packages

This commit is contained in:
Yar Kravtsov
2025-05-24 11:37:57 +03:00
parent e7f316ea6e
commit ec6ad6b0d0

View File

@@ -60,19 +60,19 @@ build:
## test: Run tests ## test: Run tests
test: test:
@echo "$(BLUE)Running tests...$(NC)" @echo "$(BLUE)Running tests...$(NC)"
@go test ./test @go test ./
@echo "$(GREEN)✓ Tests passed$(NC)" @echo "$(GREEN)✓ Tests passed$(NC)"
## test-v: Run tests with verbose output ## test-v: Run tests with verbose output
test-v: test-v:
@echo "$(BLUE)Running tests (verbose)...$(NC)" @echo "$(BLUE)Running tests (verbose)...$(NC)"
@go test -v ./test @go test -v ./
## test-cover: Run tests with coverage ## test-cover: Run tests with coverage
test-cover: test-cover:
@echo "$(BLUE)Running tests with coverage...$(NC)" @echo "$(BLUE)Running tests with coverage...$(NC)"
@go test -v -cover ./test @go test -v -cover ./
@go test -coverprofile=coverage.out ./test @go test -coverprofile=coverage.out ./
@go tool cover -html=coverage.out -o coverage.html @go tool cover -html=coverage.out -o coverage.html
@echo "$(GREEN)✓ Coverage report generated: coverage.html$(NC)" @echo "$(GREEN)✓ Coverage report generated: coverage.html$(NC)"
@@ -183,4 +183,4 @@ goreleaser-snapshot: goreleaser-check
@echo "$(GREEN)✓ Snapshot release built in dist/$(NC)" @echo "$(GREEN)✓ Snapshot release built in dist/$(NC)"
# Default target # Default target
all: check build all: check build