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
Value of the python.languageServer setting: Microsoft
Actual behaviour
In main tests/ directory are some tests and some other files needed. Those work fine until a subdirectory is created, which contains 2 tests named test_decorators.py and test_pagination.py, this subdirectory also contains the __init__.py so that the tests can be recognized. After this subdirectory is created, the tests from main directory (tests/) disappear and the ones from subdirectory are not displayed either, a popup saying that no tests were discovered and asking me to configure the test framework (It is configured properly)
Once the __init__.py file is added and I rediscover the tests, this box pops up.
Expected behaviour
When I add the subdirectory to main tests/ directory and search for the tests, both the tests from my main directory and the subdirectory should be found.
Steps to reproduce:
Create directory for tests in root of your project tests/
Configure the framework to use unittests and recognise files labeled: test_*.py
Add some tests in it and let the framework discover them [To this point everything is as expected]
Add a subdirectory in your tests/ directory and place some other tests in it
Run test discovery again
No tests were found
Logs
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
[Extension Host] Info Python Extension: 2020-05-24 16:13:27: getActivatedEnvironmentVariables, Class name = E, completed in 1ms, has a truthy return value, Arg 1: <Uri:/home/itsdrike/Programming/Python/Projects/Discord-Bot>, Arg 2: undefined, Arg 3: undefined
[Extension Host] Info Python Extension: 2020-05-24 16:13:27: > ~/.local/share/virtualenvs/Discord-Bot-j5RKKR3Y/bin/python -c "import unittestloader = unittest.TestLoader()suites = loader.discover("./tests", pattern="test_*.py")print("start") #Don't remove this linefor suite in suites._tests: for cls in suite._tests: try: for m in cls._tests: print(m.id()) except: pass"
[Extension Host] Info Python Extension: 2020-05-24 16:13:27: cwd: ~/Programming/Python/Projects/Discord-Bot
Environment data
"python.jediEnabled"set to; more info How to update the language server to the latest stable version #3977): Truepython.languageServersetting: MicrosoftActual behaviour
In main
tests/directory are some tests and some other files needed. Those work fine until a subdirectory is created, which contains 2 tests namedtest_decorators.pyandtest_pagination.py, this subdirectory also contains the__init__.pyso that the tests can be recognized. After this subdirectory is created, the tests from main directory (tests/) disappear and the ones from subdirectory are not displayed either, a popup saying that no tests were discovered and asking me to configure the test framework (It is configured properly)Once the

__init__.pyfile is added and I rediscover the tests, this box pops up.Expected behaviour
When I add the subdirectory to main
tests/directory and search for the tests, both the tests from my main directory and the subdirectory should be found.Steps to reproduce:
tests/tests/directory and place some other tests in itLogs
Output from
Consoleunder theDeveloper Toolspanel (toggle Developer Tools on underHelp; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging)