Skip to content
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

Forward env variables in test debugging #1951

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

farlee2121
Copy link
Contributor

WHAT

Ensure environment variables are forwarded when debugging tests.

WHY

Issue #1946 revealed that the environment variables were not the same between debug and non-debug executions of a test.
This causes inconsistent behavior for tests that access environment variables.

The cause of this bug was accidental override of the whole environment variable collection in order to set the debug flag for vstest.

Issue ionide#1946
Node will override all env variables if you pass an env argument.
So we need to modify the parent process env
Copy link
Member

@TheAngryByrd TheAngryByrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎸 Thank you!

@TheAngryByrd TheAngryByrd merged commit e607bdf into ionide:main Oct 20, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants