This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 645
Setting environment variables for tests causes output to cease #1608
Comments
Looks like this is a problem when the value of the env var is not a string. I have pushed a fix. Until I ship an update, you can try the below:
|
Many thanks! I'll give it a shot tomorrow. Thanks for the quick response! |
PS: you will have to be on VS Code 1.22 to get the fix |
Confirmed working in vscode 1.22.1 Thank you once again! |
This bug fix is now out in the latest update to the Go extension (0.6.79) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Steps to Reproduce:
go.testEnvVars
to have an environment variable, e.g.{"TEST": 1}
o.testEnvVars
back to{}
Expected result:
The clicked test should execute, with the environment variables output before the test execution, so that the programmer knows that the test was executed and done so with the specified environment.
Reason:
I use an environment variable to trigger an integration suite of tests. I wish to execute the test suite the same as any other test by setting the environment variable within my configuration.
The text was updated successfully, but these errors were encountered: