Skip to content

Commit cca8738

Browse files
committed
LOGC-40: Exclude non-code directories from test pattern
Change test pattern from ./... to ./cmd/... ./pkg/... to avoid scanning non-code directories like env/, docs/, and temporary files. This prevents "permission denied" errors when go test tries to scan workbench-created directories with restricted permissions.
1 parent 66eeb1c commit cca8738

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ clean:
2828

2929
test: all
3030
mkdir -p $(COVDATA_DIR)
31-
COVDATA_DIR=$(COVDATA_DIR) go test $(COVER_TESTFLAGS) -v ./...
31+
COVDATA_DIR=$(COVDATA_DIR) go test $(COVER_TESTFLAGS) -v ./cmd/... ./pkg/...
3232

3333
test-coverage: COVER_BUILDFLAGS=$(COVER_COMMONFLAGS)
3434
test-coverage: COVER_TESTFLAGS=$(COVER_COMMONFLAGS) -coverprofile cover.out

0 commit comments

Comments
 (0)