File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -36,18 +36,18 @@ build-all:
36
36
@echo " Binaries are in the '$( BUILD_DIR) ' directory:"
37
37
@ls -la $(BUILD_DIR ) /
38
38
39
- # Run tests
39
+ # Run tests (needs sudo for E2E tests)
40
40
.PHONY : test
41
41
test :
42
42
@echo " Running tests..."
43
- go test -v -race ./...
43
+ sudo go test -v -race ./...
44
44
@echo " ✓ All tests passed!"
45
45
46
- # Run tests with coverage
46
+ # Run tests with coverage (needs sudo for E2E tests)
47
47
.PHONY : test-coverage
48
48
test-coverage :
49
49
@echo " Running tests with coverage..."
50
- go test -v -race -coverprofile=coverage.out ./...
50
+ sudo go test -v -race -coverprofile=coverage.out ./...
51
51
go tool cover -html=coverage.out -o coverage.html
52
52
@echo " ✓ Coverage report generated: coverage.html"
53
53
Original file line number Diff line number Diff line change @@ -66,4 +66,3 @@ func TestCurlGithub(t *testing.T) {
66
66
t .Fatalf ("error curling github: %v" , err )
67
67
}
68
68
}
69
-
You can’t perform that action at this time.
0 commit comments