When providing custom arguments (:GoTest-n -a -test.timeout=5s), the resultant command will be:
go test <package> -args -test.timeout=5s -run=<exp>
Since -run is after -args, the -test. prefix is required to be properly detected. According to go help testflags, all test commands are recognized with this prefix.
When providing custom arguments (
:GoTest-n -a -test.timeout=5s
), the resultant command will be:go test <package> -args -test.timeout=5s -run=<exp>
Since
-run
is after-args
, the-test.
prefix is required to be properly detected. According togo help testflags
, all test commands are recognized with this prefix.