Skip to content

Commit

Permalink
chore: Format test results when compiling use gotestfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
phantomjinx committed Jan 15, 2024
1 parent fda2925 commit 000357e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,13 @@ compile:
go-generate:
go generate ./...

test:
CGO_ENABLED=0 go test -count=1 ./...
gotestfmt-install:
ifeq (, $(shell command -v gotestfmt 2> /dev/null))
go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
endif

test: gotestfmt-install
CGO_ENABLED=0 go test -count=1 ./... -json 2>&1 | gotestfmt

manifests: controller-gen
$(CONTROLLER_GEN) $(CRD_OPTIONS) paths="./..." output:crd:artifacts:config=$(INSTALL_ROOT)/crd
Expand Down

0 comments on commit 000357e

Please sign in to comment.