Skip to content

Commit b517656

Browse files
authored
Add test-silent action to Taskfile (#1792)
This copies the similar makefile action we had for Minder: `task test-silent` will run unit tests, and only show failures, and packages with no test coverage.
1 parent bb24c66 commit b517656

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Taskfile.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ tasks:
6161
cmds:
6262
- go test -v -race {{.DIR_LIST | catLines}}
6363

64+
test-silent:
65+
desc: Run unit tests, and only show failures.
66+
cmds:
67+
- go test -ldflags=-extldflags=-Wl,-w -json -race -coverprofile=coverage/coverage.out $(go list ./... | grep -vE '/test/e2e|/mocks') | gotestfmt -hide "all"
68+
6469
test:
6570
desc: Run unit tests (excluding e2e tests)
6671
deps: [gen]

0 commit comments

Comments
 (0)