-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Debugging tests doesn't set environment variables #237
Comments
Hello, Nice bug report. |
I'm using |
My current workaround is to remove With the workaround, I observe in the logs:
|
It would have been interesting also that how the log looks like in case of the original repro/issue. You've probably already read the documentation. Well there is always the option to fill your own debug config. The mechanism I created is merely a fallback. Anyhow I tried to fix it. Check the next release. |
Checklist
Describe the bug
Environment variable set under
advancedExecutables
insettings.json
is not set when debugging test cases. When running a test case (without debugging it), the environment variable is available as expected. The problem is reproducible only when debugging. The problem is also reproducible locally as well as using remote-ssh.To Reproduce
I have the following
settings.json
entry. I expect it to have the effect of HELLO environment variable being set for the test process:I have the following Catch2 test case that checks the presence of the environment variable. The problem is reproducible with Google Test, too.
Debug the test case and it'll fail. Run it normally without debugging, and it'll succeed.
Desktop
The text was updated successfully, but these errors were encountered: