feat: Add golden files to test cli help output (#4897)

This commit is contained in:
Mathias Fredriksson
2022-11-04 19:48:36 +02:00
committed by GitHub
parent 70048acd73
commit 587924fc42
5 changed files with 355 additions and 0 deletions
+9
View File
@@ -443,6 +443,15 @@ site/src/api/typesGenerated.ts: scripts/apitypings/main.go $(shell find codersdk
cd site
yarn run format:types
update-golden-files: cli/testdata/.gen-golden
.PHONY: update-golden-files
cli/testdata/.gen-golden: $(wildcard cli/testdata/*.golden) \
$(shell find . -not -path './vendor/*' -type f -name '*.go')
go test ./cli -run=TestCommandHelp -update
touch "$@"
test: test-clean
gotestsum -- -v -short ./...
.PHONY: test