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
tools: migrate test generation features to gopls
#1594
Comments
@stamblerre I would like to work on this if no one's working. |
Sounds good! /cc @hyangah to confirm that this would be a good thing to work on |
Please correct me if I'm wrong, to generate tests vscode-go calls gotests lib internally as a child process. However, gotests doesn't return any error if test(s) don't get generated other than "No tests were generated for...". The Probably modifying gotests to return an error for existing tests would be a better idea? |
@n1lesh: Thanks for digging into the underlying cause! An alternative option may actually be to move the test generation logic into |
@stamblerre I can work on the |
gopls
Is your feature request related to a problem? Please describe.
I'm always frustrated when I click on "Generate test for function" and see "No tests were generated for ...".
Describe the solution you'd like
I would like to see a reason of why there was no tests were generated. For example - "test for ... already exist".
Additional context
It would be perfect to see a location of generated tests if there is already existing one. Or after successful generation.
The text was updated successfully, but these errors were encountered: