Pytest test discovery is failing. The UI states:
Test discovery error, please check the configuration settings for the tests
The output window s
In my case the problem with vscode being unable to discover tests was the coverage module being enabled in the setup.cfg (alternatively this could be a pytest.ini), i.e.
addopts= --cov -ra
which caused the test discovery to fail due to low coverage. The solution was to remove that line from the config file.
Also, as suggested in the documentation:
You can also configure testing manually by setting one and only one of the following settings to true:
python.testing.unittestEnabled,python.testing.pytestEnabled, andpython.testing.nosetestsEnabled.