Skip to content

Commit

Permalink
Selectively run e2e tests for serving, eventing
Browse files Browse the repository at this point in the history
 - 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
  ```
  • Loading branch information
navidshaikh committed Dec 11, 2019
1 parent 4128022 commit ee04184
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e-tests-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" "$@"
1 change: 1 addition & 0 deletions test/e2e/basic_workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

// +build e2e
// +build !eventing

package e2e

Expand Down
1 change: 1 addition & 0 deletions test/e2e/revision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

// +build e2e
// +build !eventing

package e2e

Expand Down
1 change: 1 addition & 0 deletions test/e2e/route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

// +build e2e
// +build !eventing

package e2e

Expand Down
1 change: 1 addition & 0 deletions test/e2e/service_options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

// +build e2e
// +build !eventing

package e2e

Expand Down
1 change: 1 addition & 0 deletions test/e2e/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

// +build e2e
// +build !eventing

package e2e

Expand Down
1 change: 1 addition & 0 deletions test/e2e/source_list_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

// +build e2e
// +build !serving

package e2e

Expand Down
1 change: 1 addition & 0 deletions test/e2e/traffic_split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

// +build e2e
// +build !eventing

package e2e

Expand Down

0 comments on commit ee04184

Please sign in to comment.