skip integration test when run make bazel-test

we should opt for a seperate target for integration tests.
This commit is contained in:
Mike Danese 2017-05-02 13:10:46 -07:00
parent 72a469f3ac
commit 01b736c4d9
2 changed files with 5 additions and 2 deletions

View File

@ -517,7 +517,7 @@ bazel-test:
@echo "$$BAZEL_TEST_HELP_INFO" @echo "$$BAZEL_TEST_HELP_INFO"
else else
bazel-test: bazel-test:
bazel test --flaky_test_attempts=3 //cmd/... //pkg/... //federation/... //plugin/... //third_party/... //hack/... //hack:verify-all //vendor/k8s.io/... bazel test --test_tag_filters=-integration --flaky_test_attempts=3 //cmd/... //pkg/... //federation/... //plugin/... //third_party/... //hack/... //hack:verify-all //vendor/k8s.io/...
endif endif
ifeq ($(PRINT_HELP),y) ifeq ($(PRINT_HELP),y)

View File

@ -13,7 +13,10 @@ go_test(
"api_test.go", "api_test.go",
"crud_test.go", "crud_test.go",
], ],
tags = ["automanaged"], tags = [
"automanaged",
"integration",
],
deps = [ deps = [
"//federation/apis/federation/v1beta1:go_default_library", "//federation/apis/federation/v1beta1:go_default_library",
"//federation/pkg/federatedtypes:go_default_library", "//federation/pkg/federatedtypes:go_default_library",