-
Notifications
You must be signed in to change notification settings - Fork 646
Generate test function from a test file results in error opening file #2822
Comments
Thanks for reporting @pot-code, can you share the error message you are seeing? |
Created a file named
It seems that it tries to open the |
Ah! understood. The assumption always was that the "generate unit tests" command would be run on a non test file. In your case, the PRs are welcome to fix this bug
|
I will try to take this one on! |
@ramya-rao-a If no one is working here, I can do that. |
I believe @drakegens has a PR out for this that had some feedback they had to react to. |
Yes I will continue my work. Sorry work has been crazy.
On Mon, Nov 18, 2019 at 10:44 PM -0600, "Ramya Rao" <notifications@github.com<mailto:notifications@github.com>> wrote:
I believe @drakegens<https://github.com/drakegens> has a PR out for this that had some feedback they had to react to.
@drakegens<https://github.com/drakegens> Are you planning on continuing your work in #2883<#2883>?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2822?email_source=notifications&email_token=ACDJVLTK7M34HGEFGTEB2Y3QUNVKZA5CNFSM4I675TLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEM2YZI#issuecomment-555330661>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACDJVLU7ZJWKKFTI6BE4TSTQUNVKZANCNFSM4I675TLA>.
|
This issue is fixed in the latest version (0.13.0) of this extension Thanks for the PR @drakegens and Thanks for reporting @pot-code ! Happy Coding! |
Steps to Reproduce:
xxx_test.go
What impressed me is that the desired test function is appended to file, without overwriting the current content.
Is there any way to remove the error message? Every time I generate a test function, it will appear.
Though it may be uncommon to do it, but it's useful sometimes, would you mind supporting it?
The text was updated successfully, but these errors were encountered: