-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: partial test files support #9
Conversation
Signed-off-by: Norman <[email protected]>
Signed-off-by: Norman <[email protected]>
Signed-off-by: Norman <[email protected]>
Signed-off-by: Norman <[email protected]>
One solution could be to initialize a testing store from |
it doesn't seems to works on my side.. While opening
|
mmh, there is conflicts when you open stdlibs files due to the testing overlay, I'm not sure how to go about that without modifying some gopls internals |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this, as it is still a good improvement from the previous version 👍
Adds partial support for
Test
andXTest
files.The biggest missing thing is to support go libs injected in testing like
fmt
,encoding/json
, etc..There is one regression, injected testing stdlib functions like
std.TestSetRealm
will not show an error if used in normal.gno
files since there is no simple way to use different stdlib sources in normal and test filesThis should neverless help to navigate most test sources and help with refactoring by applying symbol renames also in test files
No support for
Filetest
files