Repeatedly prompts: Test framework pytest is not installed. Install?
See original GitHub issueEnvironment data
-
VS Code version: Version: 1.27.1 Commit: 5944e81f3c46a3938a82c701f96d7a59b074cfdc Date: 2018-09-06T09:21:47.222Z Electron: 2.0.7 Chrome: 61.0.3163.100 Node.js: 8.9.3 V8: 6.1.534.41 Architecture: x64
-
Extension version (available under the Extensions sidebar): 2018.8.0
-
OS and version: Linux Ubuntu 16.04
-
Python version (& distribution if applicable, e.g. Anaconda): Python 3.5.2
-
Type of virtual environment used (N/A | venv | virtualenv | conda | …): pipenv
-
Relevant/affected Python packages and their versions: XXX
Actual behavior
VSCode repeatedly asks: Test framework pytest is not installed. Install?
Yes is selected and it used pipenv install --dev pytest to install which succeeds.
Have said yes several times and yet it is still unable to find pytest.
Expected behavior
After installing pytest it should detect pytest and detect test folders.
Steps to reproduce:
- Instal vscode-python extension into folder that has pytests in “tests” folder.
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
No relevent logs can be seen from the extension.
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
XXX
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (6 by maintainers)
Top GitHub Comments
I’ll try to verify this.
I had the same issue and got it fixed when I realized that my workspace contained a folder with unit tests from another project. I removed the folder from the workspace and then the error went away and it started working.