mirror of
https://github.com/yarlson/lnk.git
synced 2025-09-01 18:02:34 +02:00
refactor(test): update test commands to include all packages
This commit is contained in:
8
Makefile
8
Makefile
@@ -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)"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user