ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
2.05k stars 123 forks source link

fix: prefix -run in GoTestXXX with '-test' #435

Closed mfycheng closed 7 months ago

mfycheng commented 7 months ago

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.