-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Testing - Test View for Python with multi-root workspace #17041
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
Comments
It worked as expected when I opened the root project Here is the output from Python channel
Please let me know if this is to test only root project or multi-root workspace? |
When you open the |
Ok. How can I reselect the python and which version shall I have to pick in this case? Also is this in the scope of this test plan item? |
@sandy081 That is not in the scope of this testing plan item. You can skip that. You can re-select that python by running |
Had some issues with the interpreter, should it be able to discover my virtualenv automatically? I had to put in the path manually. Then it seemed like the status bar item still said "Select Python Interpreter" and I had to do it a second time. But everything worked find after that point. |
@roblourens that is a know issue #16170, #16613 |
Uh oh!
There was an error while loading. Please reload this page.
Refs: #15750
Complexity: 3
Create Issue
Requirements
"python.experiments.optInto": ["All"],
in your user settings. If you did not have it, add it and reload.Testing
pytest
.py -3 -m venv .venv
python3 -m venv .venv
Note: For linux users you may not have
venv
available out of the box. Please installpython3-venv
via apt.activate
binary.\.venv\Scripts\activate
source ./.venv/bin/activate
.Note: If you use other terminal shells there are scripts under
Scripts
orbin
directory that should work for your preferred shell.pytest
:python -m pip install pytest
python: configure test
command. Otherwise you should see the tests in the test view.The text was updated successfully, but these errors were encountered: