-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Environment data
- VS Code version: 1.35 (Insiders)
- Extension version (available under the Extensions sidebar): 2019.4.12954
- OS and version: Ubuntu 18.04 LTS (interrupter is running inside of Debian 9 container via Remote Container feature)
- Python version (& distribution if applicable, e.g. Anaconda): 3.7
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): Remote Container, system Python
- Relevant/affected Python packages and their versions: pytest?
Expected behavior
After running tests via PyTest, the status symbol next to them should change from a ? to either based on test success or failure.
Actual behavior
After running tests via PyTest, the status symbol never stop showing as ?.
Steps to reproduce:
- Create Python project with tests
- Create a second Python project with tests next to the first one
- Open the second Python project as project folder in VS Code
- Configure PyTest to run tests for both projects
The use case for this is that we have shared "framework" of code that all of our projects are built that has a set of test that get run to make sure our code does not break the framework. I do not want VS Code running full linting/code checks on the framework because that is not the code I am working on. Just need to make sure tests pass.
Ex. (assuming 1. is at /project1 and 2. is at /project2, and /project2 is the folder you have open in VS Code)
Also, if project1 is not pip install -e in your environment, you will need to set a $PYTHONPATH environment variable.
Logs
Nothing useful. Just a lot of "Reloading modules... done. Analysis restarted." Python Test Log has nothing but standard PyTest output, no types of errors. Console under Developer tools has nothing useful enough, just "[Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <workspace_path>"
{ "python.testing.pyTestEnabled": true, "python.testing.pyTestArgs": [ "/project1", "/project2", ], }