Skip to content

Commit fde2fad

Browse files
authored
Dont generate coverage during test-silent (#1793)
1 parent b517656 commit fde2fad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ tasks:
4949
- go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
5050
# we have to use ldflags to avoid the LC_DYSYMTAB linker error.
5151
# https://github.com/stacklok/toolhive/issues/1687
52-
- go test -ldflags=-extldflags=-Wl,-w -v -json -race $(go list ./... | grep -v '/test/e2e') | gotestfmt -hide=all
52+
- go test -ldflags=-extldflags=-Wl,-w -v -json -race $(go list ./... | grep -v '/test/e2e') | gotestfmt
5353

5454
test-windows:
5555
desc: Run unit tests (excluding e2e tests) on Windows with race detection
@@ -64,7 +64,7 @@ tasks:
6464
test-silent:
6565
desc: Run unit tests, and only show failures.
6666
cmds:
67-
- go test -ldflags=-extldflags=-Wl,-w -json -race -coverprofile=coverage/coverage.out $(go list ./... | grep -vE '/test/e2e|/mocks') | gotestfmt -hide "all"
67+
- go test -ldflags=-extldflags=-Wl,-w -json -race $(go list ./... | grep -vE '/test/e2e|/mocks') | gotestfmt -hide "all"
6868

6969
test:
7070
desc: Run unit tests (excluding e2e tests)

0 commit comments

Comments
 (0)