Hi,

I have a suite of 20 tests, each test corresponding to a function:  func 
Test....().

Out of the 20 tests, I have two specific tests:

func TestXG()
func TestNiceSystem()

I want to invoke *go test -test.run* to execute exactly those two tests, 
and nothing else.

How can I invoke go test -test.run to execute exactly those two specific 
tests?

>From the go test -help output:

        -run regexp
            Run only those tests and examples matching the regular 
expression.
            For tests, the regular expression is split by unbracketed slash 
(/)
            characters into a sequence of regular expressions, and each part
            of a test's identifier must match the corresponding element in
            the sequence, if any. Note that possible parents of matches are
            run too, so that -run=X/Y matches and runs and reports the 
result
            of all tests matching X, even those without sub-tests matching 
Y,
            because it must run them to look for those sub-tests.


I can't figure out the regexp to match those two tests exactly.

--
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to