question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Repeatedly prompts: Test framework pytest is not installed. Install?

See original GitHub issue

Environment 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:

  1. Instal vscode-python extension into folder that has pytests in “tests” folder.

Logs

Output for Python in the Output panel (ViewOutput, 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:closed
  • Created 5 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
brettcannoncommented, Sep 7, 2018

I’ll try to verify this.

1reaction
james-rosecommented, Sep 19, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode: How to remove "Test framework ... is not installed ...
Test framework pytest is not installed. Install? I would like to remove this popup as it's quite annoying. Any idea on how to...
Read more >
Get Started — pytest documentation
pytest requires: Python 3.7+ or PyPy3. Run the following command in your command line: pip install -U pytest. Check that you installed the...
Read more >
Pytest | PyCharm Documentation - JetBrains
Installing Pytest. Once the pytest package is installed, PyCharm detects it and makes it the default project test runner.
Read more >
Testing Guidelines — Astropy v5.3.dev149+gd9cb18f5a
Since the testing dependencies are not actually required to install or ... A detailed description of the plugins can be found in the...
Read more >
Dependency Management With Python Poetry
Relevant Terminology; Python Poetry Installation. Get Started With Python ... The other is pytest, a widely used testing framework. As you've seen before, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found