-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support sandboxed environment selection for testing frameworks (pytest, uinttest) #24119
Comments
➕ but I just want |
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue. |
Same here, custom pytest wrapper. Looks like this extension runs everything using https://github.com/microsoft/vscode-python/blob/main/python_files/vscode_pytest/run_pytest_script.py and doesn't take that config at all |
Hi! Quick question- anyone know how I can specify which pytest if I am using vscode-python/python_files/vscode_pytest/run_pytest_script.py Lines 64 to 65 in 567ca5a
pytest.main()
|
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. Happy Coding! |
I think this issue became quite misleading. In my original Issue, I described a feature, to support multiple environments in VSCode “Test”s. However some other users pointed out a regression, where "python.testing.pytestPath" takes no effect. Which one is being tracked here? |
The feature request is to explicitly declare, which virtual environment should be used for tests.
I have sandboxed environments:
During development I want to set:
However, in that case, tests cannot be discovered:
As soon as I activate the
test
venv, discovery works.Note that setting:
seems to have no effect.
My
.venv
looks like this:I am using hatch, but this can easily be replicated with poetry or other:
The text was updated successfully, but these errors were encountered: