question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tests are not launched in VS15 preview 5

See original GitHub issue

Using VS15 preview 5, I can see my tests in the test explorer: image

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:closed
  • Created 7 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
huguesvcommented, Oct 31, 2016

While this now works with Python 2.7, it still doesn’t work with 3.5.

0reactions
huguesvcommented, Oct 21, 2016

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tests not running in Test Explorer - visual studio
Tests not running in Test Explorer · All test classes are public · All test classes are having the [TestClass] attribute declared ·...
Read more >
Tests not running in Test Explorer
Clean the project, close Visual Studio, delete the TestResults folder, then restart VS, then rebuild the project. (This alone might fix your ...
Read more >
VS Preview is not running tests
I can't run unit tests any longer. No explanation given by the Text Explorer. See recording. Huh. Just noticed this in the output...
Read more >
No tests on VS15 Preview 3 (Open Folder) · Issue #1137
Expected Behavior What have my mocha tests in the Text Exprorer panel Actual Behavior Popup with text There were build errors.
Read more >
Run unit tests with Test Explorer - Visual Studio (Windows)
If Test Explorer is not visible, choose Test on the Visual Studio menu, choose Windows, and then choose Test Explorer (or press Ctrl...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found