Show the verbose test output as well (this is used for CI)

This commit is contained in:
Richard Park 2021-07-13 21:14:00 +00:00 коммит произвёл GitHub
Родитель 5da6b808fc
Коммит 82d7a09765
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -40,8 +40,11 @@ test-race: ARGS=-race ## Run tests with race detector
test-cover: ARGS=-cover -coverprofile=cover.out -v ## Run tests in verbose mode with coverage
$(TEST_TARGETS): NAME=$(MAKECMDGOALS:test-%=%)
$(TEST_TARGETS): test
check test tests: cyclo lint vet terraform.tfstate; $(info $(M) running $(NAME:%=% )tests) @ ## Run tests
$Q cd $(BASE) && $(GO) test -timeout $(TIMEOUT)s $(ARGS) $(TESTPKGS) 2>&1 | $(GOJUNITRPT) > report.xml
check test tests: lint vet terraform.tfstate; $(info $(M) running $(NAME:%=% )tests) @ ## Run tests
$Q cd $(BASE) && \
$(GO) test -timeout $(TIMEOUT)s $(ARGS) $(TESTPKGS) 2>&1 | tee gotestoutput.log && \
$(GOJUNITRPT) < gotestoutput.log > report.xml && \
rm -f gotestoutput.log
.PHONY: vet
vet: $(GOLINT) ; $(info $(M) running vet) @ ## Run vet