From a99b59c8ddf9af72836fe78e3bcd2566c290db98 Mon Sep 17 00:00:00 2001 From: Fernando Diaz Date: Thu, 17 May 2018 11:20:08 -0500 Subject: [PATCH] Set Focus for E2E Tests Allows the user to set the focus of which tests to run, by default all tests will run. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 77005a32a..f91a0c599 100644 --- a/Makefile +++ b/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: