summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKubernetes Submit Queue <k8s-merge-robot@users.noreply.github.com>2017-08-18 15:16:10 -0700
committerGitHub <noreply@github.com>2017-08-18 15:16:10 -0700
commit8c0a79adbcdef1cdcce46a9aefbdd3d060969094 (patch)
treeae3068e8ed7399109fadd26250615e18fcf04939
parent3f6fb1fcbeaddb4f803175ee334b3eb3798fe691 (diff)
parent94e51042328a1e527a50e1756a4e8cbbf6361644 (diff)
Merge pull request #812 from crimsonfaith91/patch-4
Automatic merge from submit-queue Add more information for e2e testing framework Elaborate on how to use `e2e.test` to run ginkgo tests locally.
-rw-r--r--contributors/devel/e2e-tests.md18
1 files changed, 8 insertions, 10 deletions
diff --git a/contributors/devel/e2e-tests.md b/contributors/devel/e2e-tests.md
index 670358ca..8ccd77f1 100644
--- a/contributors/devel/e2e-tests.md
+++ b/contributors/devel/e2e-tests.md
@@ -78,6 +78,11 @@ some tests, and then tear everything down. Make sure you have followed the
getting started steps for your chosen cloud platform (which might involve
changing the --provider flag value to something other than "gce").
+You can quickly recompile the e2e testing framework via `go install ./test/e2e`.
+This will not do anything besides allow you to verify that the go code compiles.
+If you want to run your e2e testing framework without re-provisioning the e2e setup,
+you can do so via `make WHAT=test/e2e/e2e.test`, and then re-running the ginkgo tests.
+
To build Kubernetes, up a cluster, run tests, and tear everything down, use:
```sh
@@ -96,8 +101,9 @@ go run hack/e2e.go -- -v --up
# Run all tests
go run hack/e2e.go -- -v --test
-# Run tests matching the regex "\[Feature:Performance\]"
-go run hack/e2e.go -- -v --test --test_args="--ginkgo.focus=\[Feature:Performance\]"
+# Run tests matching the regex "\[Feature:Performance\]" against a local cluster
+# Specify "--provider=local" flag when running the tests locally
+go run hack/e2e.go -- -v --test --test_args="--ginkgo.focus=\[Feature:Performance\]" --provider=local
# Conversely, exclude tests that match the regex "Pods.*env"
go run hack/e2e.go -- -v --test --test_args="--ginkgo.skip=Pods.*env"
@@ -138,14 +144,6 @@ with this command:
go run hack/e2e.go -- -v --down
```
-## Building the Tests
-
-* You can quickly recompile the e2e testing framework via `go install ./test/e2e`.
- This will not do anything besides allow you to verify that the go code compiles.
-
-* If you want to run your e2e testing framework without re-provisioning the e2e setup,
- you can do so via `make WHAT=test/e2e/e2e.test` and then re-running the ginkgo tests.
-
## Advanced testing
### Installing/updating kubetest