Set Focus for E2E Tests

Allows the user to set the focus of which tests to run, by default all
tests will run.
This commit is contained in:
Fernando Diaz 2018-05-17 11:20:08 -05:00
parent d577fe2c15
commit a99b59c8dd

View file

@ -24,6 +24,7 @@ GOOS?=linux
DOCKER?=docker
SED_I?=sed -i
GOHOSTOS ?= $(shell go env GOHOSTOS)
FOCUS?=.*
ifeq ($(GOHOSTOS),darwin)
SED_I=sed -i ''
@ -157,7 +158,7 @@ lua-test:
e2e-test:
@ginkgo version || go get -u github.com/onsi/ginkgo/ginkgo
@ginkgo build ./test/e2e
@KUBECONFIG=${HOME}/.kube/config ginkgo -randomizeSuites -randomizeAllSpecs -flakeAttempts=2 -p -trace -nodes=2 ./test/e2e/e2e.test
@KUBECONFIG=${HOME}/.kube/config ginkgo -randomizeSuites -randomizeAllSpecs -flakeAttempts=2 --focus=$(FOCUS) -p -trace -nodes=2 ./test/e2e/e2e.test
.PHONY: cover
cover: