diff options
| author | Davanum Srinivas <davanum@gmail.com> | 2017-06-26 06:28:15 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-26 06:28:15 +0800 |
| commit | f3375f168e247c570d32e2b12639af671fa64ab9 (patch) | |
| tree | 572bfea900ab485da50b3235e936c002b83725d2 | |
| parent | c9912ffb895690472f4c1796dfa0813915e36e2d (diff) | |
| parent | 0635906513694fe2c676c3c80c92b5841236dd3e (diff) | |
Merge pull request #712 from CaoShuFeng/KUBE_GOFLAGS
drop option KUBE_GOFLAGS
| -rw-r--r-- | contributors/devel/testing.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contributors/devel/testing.md b/contributors/devel/testing.md index 2d096728..0ca4ad6e 100644 --- a/contributors/devel/testing.md +++ b/contributors/devel/testing.md @@ -61,7 +61,7 @@ make test # Run all unit tests. ### Set go flags during unit tests You can set [go flags](https://golang.org/cmd/go/) by setting the -`KUBE_GOFLAGS` environment variable. +`GOFLAGS` environment variable. ### Run unit tests from certain packages @@ -92,10 +92,10 @@ regular expression for the name of the test that should be run. ```sh # Runs TestValidatePod in pkg/api/validation with the verbose flag set -make test WHAT=./pkg/api/validation KUBE_GOFLAGS="-v" KUBE_TEST_ARGS='-run ^TestValidatePod$' +make test WHAT=./pkg/api/validation GOFLAGS="-v" KUBE_TEST_ARGS='-run ^TestValidatePod$' # Runs tests that match the regex ValidatePod|ValidateConfigMap in pkg/api/validation -make test WHAT=./pkg/api/validation KUBE_GOFLAGS="-v" KUBE_TEST_ARGS="-run ValidatePod\|ValidateConfigMap$" +make test WHAT=./pkg/api/validation GOFLAGS="-v" KUBE_TEST_ARGS="-run ValidatePod\|ValidateConfigMap$" ``` For other supported test flags, see the [golang @@ -214,7 +214,7 @@ to run a specific integration test case: ```sh # Run integration test TestPodUpdateActiveDeadlineSeconds with the verbose flag set. -make test-integration WHAT=./test/integration/pods KUBE_GOFLAGS="-v" KUBE_TEST_ARGS="-run ^TestPodUpdateActiveDeadlineSeconds$" +make test-integration WHAT=./test/integration/pods GOFLAGS="-v" KUBE_TEST_ARGS="-run ^TestPodUpdateActiveDeadlineSeconds$" ``` If you set `KUBE_TEST_ARGS`, the test case will be run with only the `v1` API |
