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

[Testing] Test environment customization #23804

Closed
Cc618 opened this issue Jul 12, 2024 · 1 comment
Closed

[Testing] Test environment customization #23804

Cc618 opened this issue Jul 12, 2024 · 1 comment
Labels
feature-request Request for new features or functionality triage-needed Needs assignment to the proper sub-team

Comments

@Cc618
Copy link

Cc618 commented Jul 12, 2024

type: Feature

Description

It would be nice to have a setting to load a custom environment when running unit tests such as python.testing.env or support a test environment file such as .testenv (alongside a python.testing.envFile setting).
We can already override the environment using a .env file but the same file is used to run / debug non test code which might not be expected.

Example

Using Settings

"python.testing.env": {
  "VARIABLE": "42"
}

Using Custom File

.testenv file that will be loaded when running unit tests:

VARIABLE=42
@Cc618 Cc618 added the feature-request Request for new features or functionality label Jul 12, 2024
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jul 12, 2024
@eleanorjboyd
Copy link
Member

Hello! We are already working on this and considering it- here is the proposal, we would love your feedback on design if you have any thoughts: #21845.

closing as a duplicate of #17171 which is tagged in this issue

@eleanorjboyd eleanorjboyd closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants