summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Xiang Tee <juntee@google.com>2017-06-23 15:40:28 -0700
committerJun Xiang Tee <juntee@google.com>2017-07-05 18:11:09 -0700
commit07c3ce60cc396d25df33f08031458d788e7efa8c (patch)
treefafe56c3c79624ed84087bd7be67247b9d43ebea
parentc9912ffb895690472f4c1796dfa0813915e36e2d (diff)
Add information for testing workflow
-rw-r--r--contributors/devel/development.md21
1 files changed, 20 insertions, 1 deletions
diff --git a/contributors/devel/development.md b/contributors/devel/development.md
index 9d83a022..14a50d59 100644
--- a/contributors/devel/development.md
+++ b/contributors/devel/development.md
@@ -279,11 +279,26 @@ To build binaries for all platforms:
make cross
```
+#### Install etcd
+
+```sh
+hack/install-etcd.sh
+```
+
#### Test
```sh
cd $working_dir/kubernetes
+# Run all the presubmission verification. Then, run a specific update script (hack/update-*.sh)
+# for each failed verification. For example:
+# hack/update-gofmt.sh (to make sure all files are correctly formatted, usually needed when you add new files)
+# hack/update-bazel.sh (to update bazel build related files, usually needed when you add or remove imports)
+make verify
+
+# Alternatively, run all update scripts to avoid fixing verification failures one by one.
+make update
+
# Run every unit test
make test
@@ -291,9 +306,13 @@ make test
make test WHAT=pkg/util/cache GOFLAGS=-v
# Run integration tests, requires etcd
+# For more info, visit https://github.com/kubernetes/community/blob/master/contributors/devel/testing.md#integration-tests
make test-integration
-# Run e2e tests
+# Run e2e tests by building test binaries, turn up a test cluster, run all tests, and tear the cluster down
+# Equivalent to: go run hack/e2e.go -- -v --build --up --test --down
+# Note: running all e2e tests takes a LONG time! To run specific e2e tests, visit:
+# https://github.com/kubernetes/community/blob/master/contributors/devel/e2e-tests.md#building-kubernetes-and-running-the-tests
make test-e2e
```