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
unittest discovery and run was working until I have updated to last version.
I have updated VS Code and Python extension to last version in the same time. I am not which one caused the problem.
Environment data
VS Code version: 1.21.1
Version 1.21.1
Commit 79b44aa704ce542d8ca4a3cc44cfca566e7720f1
Date 2018-03-14T14:46:47.128Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64
Extension version (available under the Extensions sidebar): 2018.2.1
OS and version: Win 10.0.16299 Build 16299
Python version (& distribution if applicable, e.g. Anaconda): 3.6.4 / pip 9.0.1
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions:unittest
Actual behavior
Discover Tests result with "No tests discovered, please check the configuration settings for the tests."
Create virtual environment with : py -m venv [envname]
Activate venv
Click Run Tests and configure for first execution with following settings in .vscode/settings.json
{
"python.pythonPath": "${workspaceFolder}\_env\Scripts\python.exe",
"python.unitTest.unittestArgs": [
"-v",
"-s",
"./_env",
"-p",
"*test.py"
],
"python.unitTest.unittestEnabled": true
}
Click Discover tests.
Alert will be shown with a message "No tests discovered, please check the configuration settings for the tests." & Disable Tests.
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
No output
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
No output
The text was updated successfully, but these errors were encountered:
Sorry to take your time. My mistake.
I created new project folder to reproduce the problem but I created config file wrong.
Original problem was that there was undefined variable problem in unit test file and instead of displaying that error in console, extension display alert saying that "No tests discovered, please check the configuration settings for the tests."
Thanks.
lockbot
locked as resolved and limited conversation to collaborators
Jul 11, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
unittest discovery and run was working until I have updated to last version.
I have updated VS Code and Python extension to last version in the same time. I am not which one caused the problem.
Environment data
Version 1.21.1
Commit 79b44aa704ce542d8ca4a3cc44cfca566e7720f1
Date 2018-03-14T14:46:47.128Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64
Actual behavior
Discover Tests result with "No tests discovered, please check the configuration settings for the tests."
Expected behavior
Display available tests.
Steps to reproduce:
https://docs.python.org/3/library/unittest.html
{
"python.pythonPath": "${workspaceFolder}\_env\Scripts\python.exe",
"python.unitTest.unittestArgs": [
"-v",
"-s",
"./_env",
"-p",
"*test.py"
],
"python.unitTest.unittestEnabled": true
}
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: