go-plus icon indicating copy to clipboard operation
go-plus copied to clipboard

Run a Single Test

Open neriusv opened this issue 8 years ago • 3 comments

Hi, first of all I would like to thank for the work you put into go-plus!

I was wondering if there is a way to run single test or a single _test.go file?

If there isn't, maybe it would be useful to add a Menu command, something like "Run test function under cursor" which would execute "go test params -run TestFunctionName"?

I believe this would be very useful when fixing failing tests because it would be much easier to follow the console/log output.

neriusv avatar Feb 01 '17 12:02 neriusv

I'd love to see this. Another option is to have an text input within the 'Test' tab in which you could enter a string which is proxied directly to the -run flag. The shortcut mentioned by @neriusv could populate that box.

Willyham avatar Feb 13 '17 16:02 Willyham

i want this feature too

nelsonken avatar Apr 08 '18 13:04 nelsonken

To run a single test file you can pass this to the test flags: -run .

ricardomatias avatar Aug 09 '18 10:08 ricardomatias