瀏覽代碼

docs: emphasis TESTFLAGS and add some descriptions

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
Chen Hanxiao 10 年之前
父節點
當前提交
d83b6918a7
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      docs/sources/contributing/devenvironment.md

+ 3 - 1
docs/sources/contributing/devenvironment.md

@@ -126,11 +126,13 @@ something like this
     PASS
     ok      github.com/docker/docker/utils        0.017s
 
-If $TESTFLAGS is set in the environment, it is passed as extra arguments
+If `$TESTFLAGS` is set in the environment, it will pass extra arguments
 to `go test`. You can use this to select certain tests to run, e.g.,
 
     $ TESTFLAGS='-test.run \^TestBuild\$' make test
 
+Only those test cases matching the regular expression inside quotation marks will be tested.
+
 If the output indicates "FAIL" and you see errors like this:
 
     server.go:1302 Error: Insertion failed because database is full: database or disk is full