You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've joined a python project at work and I'm currently trying to set this up in vscode and I'm having some issues doing so.
The project layout is basically as follows:
/projectroot/
/projectroot/env (/bin/python)
/projectroot/doc
/projectroot/docker
/projectroot/loader
/projectroot/loader/tests
/projectroot/webapp
/projectroot/webapp/tests
It is set up with a single virtual environment, but there are two python projects (loader and webapp) in there. If I open vscode within one of the project folders (loader), then I can easily get unit tests discovered and things seem to work. But if I open vscode from the project root folder, then unit tests are no longer discovered.
I'm fairly new to both vscode and python, so it might be some trivial issues here. Would it work better if I set up an isolated virtual environment for each of the two projects?
Environment data
VS Code version: 1.22.2
Extension version (available under the Extensions sidebar): 2018.3.1
OS and version: MacOS X 10.13.4
Python version (& distribution if applicable, e.g. Anaconda): 3.6.4
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
Actual behavior
Unit tests are not discovered
Expected behavior
Unit tests from both python projects are discovered
The text was updated successfully, but these errors were encountered:
Hi,
I've joined a python project at work and I'm currently trying to set this up in vscode and I'm having some issues doing so.
The project layout is basically as follows:
/projectroot/
/projectroot/env (/bin/python)
/projectroot/doc
/projectroot/docker
/projectroot/loader
/projectroot/loader/tests
/projectroot/webapp
/projectroot/webapp/tests
It is set up with a single virtual environment, but there are two python projects (loader and webapp) in there. If I open vscode within one of the project folders (loader), then I can easily get unit tests discovered and things seem to work. But if I open vscode from the project root folder, then unit tests are no longer discovered.
I'm fairly new to both vscode and python, so it might be some trivial issues here. Would it work better if I set up an isolated virtual environment for each of the two projects?
Environment data
Actual behavior
Unit tests are not discovered
Expected behavior
Unit tests from both python projects are discovered
The text was updated successfully, but these errors were encountered: