]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test: document specifying individual test files as operands
authorzdjones <zachj1@gmail.com>
Thu, 16 Jul 2020 11:33:25 +0000 (12:33 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 28 Aug 2020 21:23:32 +0000 (21:23 +0000)
The current command will run this entire set of tests, which takes a
noticeable amount of time. Contributors may wish to run only a subset of
these tests to save time/compute (e.g. when iterating on a CL that
failed tests in that subset). Listing file(s) as operands to the command
will run only those tests.

Change-Id: I1874c43681a594190bc40b61cee0b8d321be73f8
Reviewed-on: https://go-review.googlesource.com/c/go/+/242997
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
test/README.md

index 068dc1b22b94a5000595e40d982bfb510109da2c..432d36b653f62d4f9583370abb1f7793ce17c955 100644 (file)
@@ -6,6 +6,10 @@ To run just these tests, execute:
 
     ../bin/go run run.go
 
+To run just tests from specified files in this directory, execute:
+
+    ../bin/go run run.go -- file1.go file2.go ...
+
 Standard library tests should be written as regular Go tests in the appropriate package.
 
 The tool chain and runtime also have regular Go tests in their packages.