summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Fejta <erick@fejta.com>2017-03-24 10:21:50 -0700
committerGitHub <noreply@github.com>2017-03-24 10:21:50 -0700
commit7e7fbb7803b0cea8b0021d3e0430a73d623ec705 (patch)
tree4d5af14dac14e34dc56ec3c7bf24784795058490
parent5a97fc0c9fa716ee5768dbfa31c6945e74ab6170 (diff)
parent91ca3b62ebc9f16a7f54df525f41b767cb78e71b (diff)
Merge pull request #379 from tonglil/fix-e2e-docs
Update e2e docs
-rw-r--r--contributors/devel/e2e-tests.md24
1 files changed, 13 insertions, 11 deletions
diff --git a/contributors/devel/e2e-tests.md b/contributors/devel/e2e-tests.md
index 1a1fde36..c76159de 100644
--- a/contributors/devel/e2e-tests.md
+++ b/contributors/devel/e2e-tests.md
@@ -68,7 +68,7 @@ looking to execute or add tests using a local development environment.
Before writing new tests or making substantive changes to existing tests, you
should also read [Writing Good e2e Tests](writing-good-e2e-tests.md)
-## Building and Running the Tests
+## Building Kubernetes and Running the Tests
There are a variety of ways to run e2e tests, but we aim to decrease the number
of ways to run e2e tests to a canonical way: `hack/e2e.go`.
@@ -104,10 +104,10 @@ go run hack/e2e.go -- -v --test --test_args="--ginkgo.focus=\[Feature:Performanc
go run hack/e2e.go -- -v --test --test_args="--ginkgo.skip=Pods.*env"
# Run tests in parallel, skip any that must be run serially
-GINKGO_PARALLEL=y go run hack/e2e.go --v --test --test_args="--ginkgo.skip=\[Serial\]"
+GINKGO_PARALLEL=y go run hack/e2e.go -- -v --test --test_args="--ginkgo.skip=\[Serial\]"
# Run tests in parallel, skip any that must be run serially and keep the test namespace if test failed
-GINKGO_PARALLEL=y go run hack/e2e.go --v --test --test_args="--ginkgo.skip=\[Serial\] --delete-namespace-on-failure=false"
+GINKGO_PARALLEL=y go run hack/e2e.go -- -v --test --test_args="--ginkgo.skip=\[Serial\] --delete-namespace-on-failure=false"
# Flags can be combined, and their actions will take place in this order:
# --build, --up, --test, --down
@@ -139,6 +139,14 @@ 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
@@ -351,21 +359,15 @@ $ go run hack/e2e.go -- -v --down
#### Shortcuts for test developers
-* To speed up `e2e.go -up`, provision a single-node kubernetes cluster in a single e2e zone:
+* To speed up `--up`, provision a single-node kubernetes cluster in a single e2e zone:
`NUM_NODES=1 E2E_ZONES="us-central1-f"`
Keep in mind that some tests may require multiple underlying clusters and/or minimum compute resource availability.
-* 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.
-
* If you're hacking around with the federation control plane deployment itself,
you can quickly re-deploy the federation control plane Kubernetes manifests without tearing any resources down.
- To re-deploy the federation control plane after running `-up` for the first time:
+ To re-deploy the federation control plane after running `--up` for the first time:
```sh
$ federation/cluster/federation-up.sh