You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The Go: Test Function At Cursor command is great, but running it repeatedly stops being useful as soon as I switch to the implementation or to another piece of code in the _test.go file which isn't under a test function. At this point I have to switch to the Go: Test Previous command to keep re-running the test I'm interested in. Mentally keeping track of where I am in my code so I can activate either the first command or the second command can be exhausting and error prone.
Describe the solution you'd like
A new command to:
run the test function at cursor, if one exists;
otherwise, re-run previous test.
Describe alternatives you've considered
I've bound a single keyboard shortcut for the Go: Test Function At Cursor command when I'm in _test.go files and the Go: Test Previous command when in regular .go files. This covers switching between test and implementation, but doesn't handle the case when the cursor is in a _test.go file but not under any test function.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The
Go: Test Function At Cursor
command is great, but running it repeatedly stops being useful as soon as I switch to the implementation or to another piece of code in the_test.go
file which isn't under a test function. At this point I have to switch to theGo: Test Previous
command to keep re-running the test I'm interested in. Mentally keeping track of where I am in my code so I can activate either the first command or the second command can be exhausting and error prone.Describe the solution you'd like
A new command to:
Describe alternatives you've considered
I've bound a single keyboard shortcut for the
Go: Test Function At Cursor
command when I'm in_test.go
files and theGo: Test Previous
command when in regular.go
files. This covers switching between test and implementation, but doesn't handle the case when the cursor is in a_test.go
file but not under any test function.The text was updated successfully, but these errors were encountered: