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:
parent
d577fe2c15
commit
a99b59c8dd
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue