Skip to content

Pytest running forever #22567

Description

@andreamah

Testing #19790

Not sure if I was using the extension correctly, please lmk!

Steps:

  1. Save this code to a file:
from hypothesis import given, strategies as st

@given(st.integers(), st.integers())
def test_addition_is_commutative(x, y):
    assert x + y == y + x

with a venv with hypothesis installed.
2. Go to the testing tab, configure for pytest for the current directory.
3. Run the test.
4. It runs forever.

29.11.2023_10.43.11_REC.mp4
Logs
2023-11-29 10:40:41.005 [info] Experiment 'pythonaacf' is active
2023-11-29 10:40:41.005 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-11-29 10:40:41.005 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-11-29 10:40:41.005 [info] Experiment 'pythonRecommendTensorboardExt' is active
2023-11-29 10:40:41.005 [info] Experiment 'pythonREPLSmartSend' is active
2023-11-29 10:40:41.005 [info] Experiment 'pythonSurveyNotification' is active
2023-11-29 10:40:41.005 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2023-11-29 10:40:41.005 [info] Experiment 'pythonTestAdapter' is active
2023-11-29 10:40:41.005 [info] Default formatter is set to esbenp.prettier-vscode for workspace c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test
2023-11-29 10:40:41.006 [info] Test server listening.
2023-11-29 10:40:41.006 [info] Python interpreter path: .\venv\Scripts\python.exe
2023-11-29 10:40:42.738 [info] Send text to terminal: echo C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
2023-11-29 10:40:44.010 [info] > conda info --json
2023-11-29 10:40:44.346 [info] > "~/OneDrive - Microsoft/Documents/for-testing/pytest-test/venv/Scripts/activate.bat" && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2023.21.13331008/pythonFiles/printEnvVariables.py
2023-11-29 10:40:44.346 [info] shell: commandPrompt
2023-11-29 10:40:45.193 [info] > "~\OneDrive - Microsoft\Documents\for-testing\pytest-test\venv\Scripts\python.exe" -I ~\.vscode-insiders\extensions\ms-python.python-2023.21.13331008\pythonFiles\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2023.21.13331008\pythonFiles\interpreterInfo.py
2023-11-29 10:40:45.789 [info] Shell integration is not working for powershell
2023-11-29 10:40:45.789 [warning] Shell integration is not active, environment activated maybe overriden by the shell.
2023-11-29 10:40:45.960 [info] > & "~/OneDrive - Microsoft/Documents/for-testing/pytest-test/venv/Scripts/Activate.ps1" ; echo 'e8b39361-0157-4923-80e1-22d70d46dee6' ; python ~/.vscode-insiders/extensions/ms-python.python-2023.21.13331008/pythonFiles/printEnvVariables.py
2023-11-29 10:40:45.960 [info] shell: powershell
2023-11-29 10:40:47.152 [info] Starting Pylance language server.
2023-11-29 10:40:50.902 [info] > ~\AppData\Local\Microsoft\WindowsApps\python3.11.exe ~/.vscode-insiders/extensions/ms-python.python-2023.21.13331008/pythonFiles/printEnvVariables.py
2023-11-29 10:40:50.902 [info] shell: powershell
2023-11-29 10:40:52.686 [info] Send text to terminal: C:\Users\andreamah\AppData\Local\Microsoft\WindowsApps\python3.11.exe "c:\Users\andreamah\.vscode-insiders\extensions\ms-python.python-2023.21.13331008\pythonFiles\printEnvVariablesToFile.py" "c:\Users\andreamah\.vscode-insiders\extensions\ms-python.python-2023.21.13331008\pythonFiles\deactivate\powershell\envVars.txt"
2023-11-29 10:40:57.310 [info] > ~\AppData\Local\anaconda3\python.exe -I ~\.vscode-insiders\extensions\ms-python.python-2023.21.13331008\pythonFiles\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2023.21.13331008\pythonFiles\interpreterInfo.py
2023-11-29 10:40:57.336 [info] > ~\AppData\Local\anaconda3\envs\condaenv\python.exe -I ~\.vscode-insiders\extensions\ms-python.python-2023.21.13331008\pythonFiles\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2023.21.13331008\pythonFiles\interpreterInfo.py
2023-11-29 10:42:07.478 [info] Discover tests for workspace name: pytest-test - uri: c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test
2023-11-29 10:43:16.380 [info] Discover tests for workspace name: pytest-test - uri: c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test
2023-11-29 10:43:18.321 [info] Discover tests for workspace name: pytest-test - uri: c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test
2023-11-29 10:43:21.968 [info] > "~/OneDrive - Microsoft/Documents/for-testing/pytest-test/venv/Scripts/activate.bat" && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2023.21.13331008/pythonFiles/printEnvVariables.py
2023-11-29 10:43:21.968 [info] shell: commandPrompt
2023-11-29 10:43:22.387 [info] > "~\OneDrive - Microsoft\Documents\for-testing\pytest-test\venv\Scripts\python.exe" -c "import pytest"
2023-11-29 10:43:23.951 [info] Discover tests for workspace name: pytest-test - uri: c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test\.vscode\settings.json
2023-11-29 10:43:23.951 [info] Running discovery for pytest using the new test adapter.
2023-11-29 10:43:23.953 [info] All environment variables set for pytest discovery for workspace c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\andreamah\\AppData\\Roaming","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_15844_EEDPIBRXDWBUVZNZ","COMPUTERNAME":"DESKTOP-956ATPJ","EFC_11300":"0","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","GIT_LFS_PATH":"C:\\Program Files\\Git LFS","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\andreamah","LOCALAPPDATA":"C:\\Users\\andreamah\\AppData\\Local","LOGONSERVER":"\\\\DESKTOP-956ATPJ","NUMBER_OF_PROCESSORS":"8","NVM_HOME":"C:\\Users\\andreamah\\AppData\\Roaming\\nvm","NVM_SYMLINK":"C:\\Program Files\\nodejs","OPENAI_API_KEY":"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","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","POSH_INSTALLER":"winget","POSH_THEMES_PATH":"C:\\Users\\andreamah\\AppData\\Local\\Programs\\oh-my-posh\\themes","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 140 Stepping 1, GenuineIntel","PROCESSOR_LEVEL":"6","PROCESSOR_REVISION":"8c01","PUBLIC":"C:\\Users\\Public","SESSIONNAME":"Console","TEMP":"C:\\Users\\ANDREA~1\\AppData\\Local\\Temp","TMP":"C:\\Users\\ANDREA~1\\AppData\\Local\\Temp","UATDATA":"C:\\windows\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77","USERDNSDOMAIN":"redmond.corp.microsoft.com","USERDOMAIN":"REDMOND","USERDOMAIN_ROAMINGPROFILE":"REDMOND","USERNAME":"andreamah","USERPROFILE":"C:\\Users\\andreamah","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\andreamah\\AppData\\Roaming\\Code - Insiders\\CachedData\\2e721b6ec731c22cd3c2853dbc7ad69deb447515","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\andreamah\\AppData\\Local\\Programs\\Microsoft VS Code Insiders","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\90509f104857371572c5d4c2ed4fde8c-1.85.0-insider-main-sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"osLocale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"15844","__COMPAT_LAYER":"DetectorsAppHealth","ChocolateyInstall":"C:\\ProgramData\\chocolatey","ChocolateyLastPathUpdate":"132997026502554380","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","OneDrive":"C:\\Users\\andreamah\\OneDrive - Microsoft","OneDriveCommercial":"C:\\Users\\andreamah\\OneDrive - Microsoft","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files (x86)\\Microsoft Azure Information Protection\\Powershell","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","windir":"C:\\WINDOWS","Path":"C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\Git LFS;C:\\Program Files\\GitHub CLI\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code Exploration\\bin;C:\\Users\\andreamah\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\andreamah\\AppData\\Local\\anaconda3\\Scripts;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\Git\\cmd;C:\\Users\\andreamah\\.cargo\\bin;C:\\Users\\andreamah\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\andreamah\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\andreamah\\AppData\\Roaming\\npm;C:\\Users\\andreamah\\.dotnet\\tools;C:\\Users\\andreamah\\.vscode-server-launcher\\bin;C:\\Users\\andreamah\\.vscode-cli\\bin;C:\\Users\\andreamah\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\bin;C:\\Users\\andreamah\\.dotnet\\tools;C:\\Users\\andreamah\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\andreamah\\.vscode-server-launcher\\bin;C:\\Users\\andreamah\\.dotnet\\tools;C:\\Users\\andreamah\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\andreamah\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\andreamah\\AppData\\Local\\anaconda3\\Scripts;C:\\Users\\andreamah\\Documents\\vscode;","PYTHONPATH":"c:\\Users\\andreamah\\.vscode-insiders\\extensions\\ms-python.python-2023.21.13331008\\pythonFiles","TEST_UUID":"fc6e03c8-0989-4e1e-be4c-1dd8fcc3bb39","TEST_PORT":"56281"} 

2023-11-29 10:43:24.015 [info] > "~\OneDrive - Microsoft\Documents\for-testing\pytest-test\venv\Scripts\python.exe" -m pytest -p vscode_pytest --collect-only .
2023-11-29 10:43:24.015 [info] cwd: ~\OneDrive - Microsoft\Documents\for-testing\pytest-test
2023-11-29 10:43:24.417 [info] Discover tests for workspace name: pytest-test - uri: c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test
2023-11-29 10:43:24.417 [info] Running discovery for pytest using the new test adapter.
2023-11-29 10:43:25.980 [info] ============================= test session starts =============================
platform win32 -- Python 3.11.6, pytest-7.4.3, pluggy-1.3.0
rootdir: c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test
plugins: hypothesis-6.91.0
collected 0 items

========================= no tests collected in 0.03s =========================

2023-11-29 10:43:25.987 [info] Test server connected to a client.
2023-11-29 10:43:25.988 [error] Subprocess exited unsuccessfully with exit code 5 and signal null on workspace c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test.
2023-11-29 10:43:26.035 [info] ResultResolver EOT received for discovery.
2023-11-29 10:43:26.036 [info] Disposing data receiver for c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test and deleting UUID; pytest discovery.
2023-11-29 10:43:32.444 [info] Server listening on port 56601
2023-11-29 10:43:32.457 [info] All environment variables set for pytest execution in c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test workspace: 
 {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\andreamah\\AppData\\Roaming","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_15844_EEDPIBRXDWBUVZNZ","COMPUTERNAME":"DESKTOP-956ATPJ","EFC_11300":"0","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","GIT_LFS_PATH":"C:\\Program Files\\Git LFS","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\andreamah","LOCALAPPDATA":"C:\\Users\\andreamah\\AppData\\Local","LOGONSERVER":"\\\\DESKTOP-956ATPJ","NUMBER_OF_PROCESSORS":"8","NVM_HOME":"C:\\Users\\andreamah\\AppData\\Roaming\\nvm","NVM_SYMLINK":"C:\\Program Files\\nodejs","OPENAI_API_KEY":"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","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","POSH_INSTALLER":"winget","POSH_THEMES_PATH":"C:\\Users\\andreamah\\AppData\\Local\\Programs\\oh-my-posh\\themes","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 140 Stepping 1, GenuineIntel","PROCESSOR_LEVEL":"6","PROCESSOR_REVISION":"8c01","PUBLIC":"C:\\Users\\Public","SESSIONNAME":"Console","TEMP":"C:\\Users\\ANDREA~1\\AppData\\Local\\Temp","TMP":"C:\\Users\\ANDREA~1\\AppData\\Local\\Temp","UATDATA":"C:\\windows\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77","USERDNSDOMAIN":"redmond.corp.microsoft.com","USERDOMAIN":"REDMOND","USERDOMAIN_ROAMINGPROFILE":"REDMOND","USERNAME":"andreamah","USERPROFILE":"C:\\Users\\andreamah","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\andreamah\\AppData\\Roaming\\Code - Insiders\\CachedData\\2e721b6ec731c22cd3c2853dbc7ad69deb447515","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\andreamah\\AppData\\Local\\Programs\\Microsoft VS Code Insiders","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\90509f104857371572c5d4c2ed4fde8c-1.85.0-insider-main-sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"osLocale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"15844","__COMPAT_LAYER":"DetectorsAppHealth","ChocolateyInstall":"C:\\ProgramData\\chocolatey","ChocolateyLastPathUpdate":"132997026502554380","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","OneDrive":"C:\\Users\\andreamah\\OneDrive - Microsoft","OneDriveCommercial":"C:\\Users\\andreamah\\OneDrive - Microsoft","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files (x86)\\Microsoft Azure Information Protection\\Powershell","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","windir":"C:\\WINDOWS","Path":"C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\Git LFS;C:\\Program Files\\GitHub CLI\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code Exploration\\bin;C:\\Users\\andreamah\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\andreamah\\AppData\\Local\\anaconda3\\Scripts;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\Git\\cmd;C:\\Users\\andreamah\\.cargo\\bin;C:\\Users\\andreamah\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\andreamah\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\andreamah\\AppData\\Roaming\\npm;C:\\Users\\andreamah\\.dotnet\\tools;C:\\Users\\andreamah\\.vscode-server-launcher\\bin;C:\\Users\\andreamah\\.vscode-cli\\bin;C:\\Users\\andreamah\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\bin;C:\\Users\\andreamah\\.dotnet\\tools;C:\\Users\\andreamah\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\andreamah\\.vscode-server-launcher\\bin;C:\\Users\\andreamah\\.dotnet\\tools;C:\\Users\\andreamah\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\andreamah\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\andreamah\\AppData\\Local\\anaconda3\\Scripts;C:\\Users\\andreamah\\Documents\\vscode;","PYTHONPATH":"c:\\Users\\andreamah\\.vscode-insiders\\extensions\\ms-python.python-2023.21.13331008\\pythonFiles","TEST_UUID":"5bfd2902-1de0-44b0-b5ed-caead66f0dc4","TEST_PORT":"56281","RUN_TEST_IDS_PORT":"56601"}
2023-11-29 10:43:32.457 [info] Running pytest with arguments: c:\Users\andreamah\.vscode-insiders\extensions\ms-python.python-2023.21.13331008\pythonFiles\vscode_pytest\run_pytest_script.py --rootdir c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test for workspace c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test 

2023-11-29 10:43:32.457 [info] > "~\OneDrive - Microsoft\Documents\for-testing\pytest-test\venv\Scripts\python.exe" ~\.vscode-insiders\extensions\ms-python.python-2023.21.13331008\pythonFiles\vscode_pytest\run_pytest_script.py --rootdir "~\OneDrive - Microsoft\Documents\for-testing\pytest-test"
2023-11-29 10:43:32.457 [info] cwd: ~\OneDrive - Microsoft\Documents\for-testing\pytest-test
2023-11-29 10:43:32.965 [info] Client disconnected
2023-11-29 10:45:37.874 [info] Test run cancelled, resolving 'till EOT' deferred for c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test.
2023-11-29 10:45:37.874 [info] Test run cancelled, killing pytest subprocess for workspace c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test
2023-11-29 10:45:37.874 [info] Disposing data receiver for c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test and deleting UUID; pytest execution.

Activity

  1. eleanorjboyd commented on Nov 29, 2023

    @eleanorjboyd
    Member

    Hi! Thank you for this detailed report, can you share your workspace layout? Like is the file test-ex.py directly under the root of the workspace?

  2. andreamah commented on Nov 29, 2023

    @andreamah
    Author

    Yup! You can see from the left side of the screen recording, it's just test-ex.py at the root and also a venv folder as a sibling of it.

  3. eleanorjboyd commented on Nov 29, 2023

    @eleanorjboyd
    Member

    Hi! Could you try renaming the file from test-ex.py to test_ex.py` and see if that fixes it? The test was not even discovered so I want to make sure the test was able to be discovered. That is why you see nothing below the dropdown on the test explorer. Great point on pytest running forever, since it couldn't find a test it was an edge case I didn't consider. Thanks!

  4. andreamah commented on Nov 29, 2023

    @andreamah
    Author

    Yes renaming works! Nice catch!

  5. locked as resolved and limited conversation to collaborators on Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-testingbugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions