Whenever I open a folder, python extension will pop up message "No tests discovered, please check the configuration settings for the tests." #15997
-
Even if it's an empty folder or non-python folder, the message still pop up. what should I do? My settings.json:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's because you have conflicting settings. You set up arguments for And the extension will launch in a VS Code workspace if you open a Python file or have a key Python project file in your workspace, so my guess is you're not opening new VS Code windows for your workspaces. |
Beta Was this translation helpful? Give feedback.
It's because you have conflicting settings. You set up arguments for
unittest
but you left it off viaunittestEnabled
and instead turned onpytest
support viapytestEnabled
. You probably want to either turn off all test support, turn onunittest
support but turn offpytest
support, or usepytestArgs
instead ofunittestArgs
.And the extension will launch in a VS Code workspace if you open a Python file or have a key Python project file in your workspace, so my guess is you're not opening new VS Code windows for your workspaces.