Tests are not launched in VS15 preview 5
See original GitHub issueUsing VS15 preview 5, I can see my tests in the test explorer:
But if try to launch them, it does nothing. “Run selected tests” does nothing. “Run all” seems to think (button switch to Cancel), but nothing happens.
Got a message on TEst output
Cannot discover test extensions installed by NuGet. The NuGet service is not available. Tests may not be found due to missing test adapter extensions.
Microsoft Visual Studio Enterprise 15 Preview 5 Version 15.0.25802.0 PREVIEW Microsoft .NET Framework Version 4.6.01586
Installed Version: Enterprise
Visual Basic 15 Preview 5 00369-50000-00000-AA578 Microsoft Visual Basic 15 Preview 5
Visual C# 15 Preview 5 00369-50000-00000-AA578 Microsoft Visual C# 15 Preview 5
ASP.NET and Web Tools 2016 15.0.20908.0 ASP.NET and Web Tools 2016
Common Azure Tools 1.8 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
JavaScript Language Service 2.0 JavaScript Language Service
Microsoft .NET Core Tools 15.0.20908.0 Microsoft .NET Core Tools
Python Tools for Visual Studio 3.0.16266.1 Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.
Python Tools for Visual Studio - Cookiecutter Integration 3.0.16266.1 Provides cookiecutter integration.
Python Tools for Visual Studio - Django Integration 3.0.16266.1 Provides templates and integration for the Django web framework.
Python Tools for Visual Studio - Profiling Support 3.0.16266.1 Profiling support for Python projects.
TypeScript 2.0.5.0 TypeScript tools for Visual Studio
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (12 by maintainers)
While this now works with Python 2.7, it still doesn’t work with 3.5.
tests = unittest.defaultTestLoader.loadTestsFromNames(opts.tests)
from visualstudio_py_testlauncher.py raises an ImportError, which is not caught. The finally clause sends ‘done’ event back to VS. VS never gets any test outcome for any of the tests.I’ll try to do the iteration in the launcher and call
loadTestsFromName
instead, and send a failed event for those that can’t be loaded.