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
  ```
This commit is contained in:
Navid Shaikh 2019-12-11 17:28:49 +05:30 committed by Knative Prow Robot
parent 4128022fb7
commit 2c1e5dc88d
8 changed files with 8 additions and 1 deletions

View File

@ -26,4 +26,4 @@ echo "📋 Formatting"
go fmt ${base}/test/e2e/... go fmt ${base}/test/e2e/...
echo "🧪 Testing" echo "🧪 Testing"
go test ${base}/test/e2e/ -test.v --tags 'e2e' "$@" go test ${base}/test/e2e/ -test.v -tags "e2e ${E2E_TAGS}" "$@"

View File

@ -13,6 +13,7 @@
// limitations under the License. // limitations under the License.
// +build e2e // +build e2e
// +build !eventing
package e2e package e2e

View File

@ -13,6 +13,7 @@
// limitations under the License. // limitations under the License.
// +build e2e // +build e2e
// +build !eventing
package e2e package e2e

View File

@ -13,6 +13,7 @@
// limitations under the License. // limitations under the License.
// +build e2e // +build e2e
// +build !eventing
package e2e package e2e

View File

@ -13,6 +13,7 @@
// limitations under the License. // limitations under the License.
// +build e2e // +build e2e
// +build !eventing
package e2e package e2e

View File

@ -13,6 +13,7 @@
// limitations under the License. // limitations under the License.
// +build e2e // +build e2e
// +build !eventing
package e2e package e2e

View File

@ -13,6 +13,7 @@
// limitations under the License. // limitations under the License.
// +build e2e // +build e2e
// +build !serving
package e2e package e2e

View File

@ -13,6 +13,7 @@
// limitations under the License. // limitations under the License.
// +build e2e // +build e2e
// +build !eventing
package e2e package e2e