mirror of
https://github.com/helm/helm.git
synced 2026-08-09 09:33:14 +00:00
Poposal: Hook to run acceptance tests (#6256)
* Allow to run acceptance tests from main Helm repo To run the acceptance tests, one can now do: make test-acceptance Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca> * Allow to run completion tests from main Helm repo To run the completion tests, one can now do: make test-completion Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca> * Use the word 'clone' instead Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca> * Use test-acceptance-completion naming Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
This commit is contained in:
committed by
Martin Hickey
parent
98a6fc5a3a
commit
6cc1bd2ef4
19
Makefile
19
Makefile
@@ -9,6 +9,10 @@ GOX = $(GOPATH)/bin/gox
|
||||
GOIMPORTS = $(GOPATH)/bin/goimports
|
||||
GOLANGCI_LINT = $(GOPATH)/bin/golangci-lint
|
||||
|
||||
ACCEPTANCE_DIR:=$(GOPATH)/src/helm.sh/acceptance-testing
|
||||
# To specify the subset of acceptance tests to run. '.' means all tests
|
||||
ACCEPTANCE_RUN_TESTS=.
|
||||
|
||||
# go option
|
||||
PKG := ./...
|
||||
TAGS :=
|
||||
@@ -81,6 +85,21 @@ test-style: vendor $(GOLANGCI_LINT)
|
||||
$(GOLANGCI_LINT) run
|
||||
@scripts/validate-license.sh
|
||||
|
||||
.PHONY: test-acceptance
|
||||
test-acceptance: TARGETS = linux/amd64
|
||||
test-acceptance: build build-cross
|
||||
@if [ -d "${ACCEPTANCE_DIR}" ]; then \
|
||||
cd ${ACCEPTANCE_DIR} && \
|
||||
ROBOT_RUN_TESTS=$(ACCEPTANCE_RUN_TESTS) ROBOT_HELM_PATH=$(BINDIR) make acceptance; \
|
||||
else \
|
||||
echo "You must clone the acceptance_testing repo under $(ACCEPTANCE_DIR)"; \
|
||||
echo "You can find the acceptance_testing repo at https://github.com/helm/acceptance-testing"; \
|
||||
fi
|
||||
|
||||
.PHONY: test-acceptance-completion
|
||||
test-acceptance-completion: ACCEPTANCE_RUN_TESTS = shells.robot
|
||||
test-acceptance-completion: test-acceptance
|
||||
|
||||
.PHONY: verify-docs
|
||||
verify-docs: build
|
||||
@scripts/verify-docs.sh
|
||||
|
||||
Reference in New Issue
Block a user