Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy generated test command #516

Open
FernandoBasso opened this issue Oct 23, 2024 · 0 comments
Open

Copy generated test command #516

FernandoBasso opened this issue Oct 23, 2024 · 0 comments

Comments

@FernandoBasso
Copy link

FernandoBasso commented Oct 23, 2024

I sometimes find myself wanting to copy the test command (instead of composing it manually) to run the same test on a normal terminal session.

What I currently do is to run something like GoTestFile -F and then I copy the command with the mouse (as I could not find a way to focus the command being displayed using only the keyboard):

copy generated test command

Is there a better way to do it? Would it be too hard to implement a command like GoTestFileCopyCmd or something like t that?

Sometimes the file/func being tested is deeply nested under a directory structure, or the -run SomeLongStringToRemember is required, so being able to copy the resulting test would be useful in some situations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant