Skip to content Skip to sidebar Skip to footer

No Test Under Python Unittest In Visual Studio 2019

I have an existing python project in visual studio 2019 (Version16.3.9) containing unit test created for unittest.py under visual studio 2017. I already configered the project for

Solution 1:

Can you check your output windows under "Tests" for the arguments passed to run_adapter.py, and make sure discover unittest there?

example

xxx\EXTENSIONS\MICROSOFT CORPORATION\PYTHON\16.0.0\PythonFiles\testing_tools\run_adapter.py discover unittest --output-file xx\Local\Temp\tmpF743.tmp -- . test*.py

Also is pytest installed in your environment? If so which version?


Post a Comment for "No Test Under Python Unittest In Visual Studio 2019"