Skip to content

Commit

Permalink
Merge pull request #2250 from balopat/run_one_integration_test
Browse files Browse the repository at this point in the history
ability to `make integration` only on a chosen set of integration tests
  • Loading branch information
balopat authored Jun 13, 2019
2 parents 0a03dd7 + da2451d commit ff1ca99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,14 @@ _These tests require push access to a project in GCP, and so can only be run
by maintainers who have access. These tests will be kicked off by [reviewers](#reviews)
for submitted PRs._
### Running a subset of integration tests
You can select specific integration tests to run via the `INTEGRATION_TEST_ARGS` env var:
```shell
INTEGRATION_TEST_ARGS="-run=TestDev/" make integration-test
```
## Building skaffold docs
The latest version of the skaffold site is based on the Hugo theme of the github.com/google/docsy template.
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ifeq ($(GCP_ONLY),true)
--zone $(GKE_ZONE) \
--project $(GCP_PROJECT)
endif
GCP_ONLY=$(GCP_ONLY) go test -v $(REPOPATH)/integration -timeout 15m
GCP_ONLY=$(GCP_ONLY) go test -v $(REPOPATH)/integration -timeout 15m $(INTEGRATION_TEST_ARGS)

.PHONY: release
release: cross $(BUILD_DIR)/VERSION
Expand Down Expand Up @@ -197,6 +197,7 @@ integration-in-docker: skaffold-builder
-e GKE_ZONE=$(GKE_ZONE) \
-e DOCKER_CONFIG=/root/.docker \
-e GOOGLE_APPLICATION_CREDENTIALS=$(GOOGLE_APPLICATION_CREDENTIALS) \
-e INTEGRATION_TEST_ARGS=$(INTEGRATION_TEST_ARGS) \
gcr.io/$(GCP_PROJECT)/skaffold-integration

.PHONY: submit-build-trigger
Expand Down

0 comments on commit ff1ca99

Please sign in to comment.