-
Notifications
You must be signed in to change notification settings - Fork 8
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
ENV Vars set in vscode-test.js do not persist in Debug Mode (but do in Run mode and vscode-test command line) #17
Comments
Hello, I'm hitting an issue related to this and running tests in a remote setup. I have the following in my
I am connected to a remote workspace over SSH. My test consists of running a task through When running the test in normal mode, it works. The environment is passed to the test, and to the underlying When running in debug mode, I see something weird. The task fails to find the tool on Do you have an idea why the environment is not being passed to the Thanks |
Actually I created a reproducer of the issue that does not involve I created a project test-env in my fork of the extension samples repository. I wrote two extension tests here. One that checks the value of the I observe the following:
Any idea why that happens? Is there a way to set environment variables for debug executions that would behave like non-debug executions? I.e. I want tasks invoked in testing to inherit the environment. Do I need to open a separate issue for this? Thanks! |
Coming back to this, I suspect that ShellExecution and ProcessExecution cache Thus, when debugging, I created an issue in the main project for this, with a link to my reproducer. I hope it will be considered. Thanks! |
With Debug:
With Run/vscode-test
Workaround
Setting the values in
extension-test-runner.DebugOptions
env
property seems to workThe text was updated successfully, but these errors were encountered: