chore(Makefile): add target to generate golden files

Add target to generate golden files used in unit tests

Signed-off-by: Adam Reese <adam@reese.io>
pull/9222/head
Adam Reese 4 years ago
parent 6760dda91f
commit b4010b7782
No known key found for this signature in database
GPG Key ID: 06F35E60A7A18DD6

@ -139,6 +139,13 @@ coverage:
format: $(GOIMPORTS)
GO111MODULE=on go list -f '{{.Dir}}' ./... | xargs $(GOIMPORTS) -w -local helm.sh/helm
# Generate golden files used in unit tests
.PHONY: gen-test-golden
gen-test-golden:
gen-test-golden: PKG = ./cmd/helm ./pkg/action
gen-test-golden: TESTFLAGS = -update
gen-test-golden: test-unit
# ------------------------------------------------------------------------------
# dependencies

Loading…
Cancel
Save