mirror of
https://github.com/yarlson/lnk.git
synced 2025-08-31 18:01:41 +02:00
refactor(test): update test commands to include all packages recursively
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
||||
run: go vet ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v -race -coverprofile=coverage.out ./
|
||||
run: go test -v -race -coverprofile=coverage.out ./...
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
go-version: '1.24'
|
||||
|
||||
- name: Run tests
|
||||
run: go test ./
|
||||
run: go test ./...
|
||||
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
|
6
Makefile
6
Makefile
@@ -60,18 +60,18 @@ build:
|
||||
## test: Run tests
|
||||
test:
|
||||
@echo "$(BLUE)Running tests...$(NC)"
|
||||
@go test ./
|
||||
@go test ./...
|
||||
@echo "$(GREEN)✓ Tests passed$(NC)"
|
||||
|
||||
## test-v: Run tests with verbose output
|
||||
test-v:
|
||||
@echo "$(BLUE)Running tests (verbose)...$(NC)"
|
||||
@go test -v ./
|
||||
@go test -v ./...
|
||||
|
||||
## test-cover: Run tests with coverage
|
||||
test-cover:
|
||||
@echo "$(BLUE)Running tests with coverage...$(NC)"
|
||||
@go test -v -cover ./
|
||||
@go test -v -cover ./...
|
||||
@go test -coverprofile=coverage.out ./
|
||||
@go tool cover -html=coverage.out -o coverage.html
|
||||
@echo "$(GREEN)✓ Coverage report generated: coverage.html$(NC)"
|
||||
|
Reference in New Issue
Block a user