From 2c1e5dc88d2002a3e3edc8ac3b12e5ee3003f87d Mon Sep 17 00:00:00 2001 From: Navid Shaikh Date: Wed, 11 Dec 2019 17:28:49 +0530 Subject: [PATCH] Selectively run e2e tests for serving, eventing (#547) - Run only serving specific e2e tests locally ``` E2E_TAGS="serving" ./test/e2e-tests-local.sh ``` - Run only eventing specific e2e tests locally ``` E2E_TAGS="eventing" ./test/e2e-tests-local.sh ``` - Run all e2e tests locally ``` ./test/e2e-tests-local.sh ``` --- test/e2e-tests-local.sh | 2 +- test/e2e/basic_workflow_test.go | 1 + test/e2e/revision_test.go | 1 + test/e2e/route_test.go | 1 + test/e2e/service_options_test.go | 1 + test/e2e/service_test.go | 1 + test/e2e/source_list_types_test.go | 1 + test/e2e/traffic_split_test.go | 1 + 8 files changed, 8 insertions(+), 1 deletion(-) diff --git a/test/e2e-tests-local.sh b/test/e2e-tests-local.sh index e4e4d05fb..5eb08fe52 100755 --- a/test/e2e-tests-local.sh +++ b/test/e2e-tests-local.sh @@ -26,4 +26,4 @@ echo "๐Ÿ“‹ Formatting" go fmt ${base}/test/e2e/... echo "๐Ÿงช Testing" -go test ${base}/test/e2e/ -test.v --tags 'e2e' "$@" +go test ${base}/test/e2e/ -test.v -tags "e2e ${E2E_TAGS}" "$@" diff --git a/test/e2e/basic_workflow_test.go b/test/e2e/basic_workflow_test.go index 727dbbed1..a225550ba 100644 --- a/test/e2e/basic_workflow_test.go +++ b/test/e2e/basic_workflow_test.go @@ -13,6 +13,7 @@ // limitations under the License. // +build e2e +// +build !eventing package e2e diff --git a/test/e2e/revision_test.go b/test/e2e/revision_test.go index dcaba5ad0..534636a75 100644 --- a/test/e2e/revision_test.go +++ b/test/e2e/revision_test.go @@ -13,6 +13,7 @@ // limitations under the License. // +build e2e +// +build !eventing package e2e diff --git a/test/e2e/route_test.go b/test/e2e/route_test.go index ded4ac30f..24c30a058 100644 --- a/test/e2e/route_test.go +++ b/test/e2e/route_test.go @@ -13,6 +13,7 @@ // limitations under the License. // +build e2e +// +build !eventing package e2e diff --git a/test/e2e/service_options_test.go b/test/e2e/service_options_test.go index 64881b4d4..f793e9b65 100644 --- a/test/e2e/service_options_test.go +++ b/test/e2e/service_options_test.go @@ -13,6 +13,7 @@ // limitations under the License. // +build e2e +// +build !eventing package e2e diff --git a/test/e2e/service_test.go b/test/e2e/service_test.go index 19d229aee..1ce32e1cc 100644 --- a/test/e2e/service_test.go +++ b/test/e2e/service_test.go @@ -13,6 +13,7 @@ // limitations under the License. // +build e2e +// +build !eventing package e2e diff --git a/test/e2e/source_list_types_test.go b/test/e2e/source_list_types_test.go index 9aaca75aa..dd014b05f 100644 --- a/test/e2e/source_list_types_test.go +++ b/test/e2e/source_list_types_test.go @@ -13,6 +13,7 @@ // limitations under the License. // +build e2e +// +build !serving package e2e diff --git a/test/e2e/traffic_split_test.go b/test/e2e/traffic_split_test.go index 6844b56ce..1606c0896 100644 --- a/test/e2e/traffic_split_test.go +++ b/test/e2e/traffic_split_test.go @@ -13,6 +13,7 @@ // limitations under the License. // +build e2e +// +build !eventing package e2e