Description
I am unable to run UWP tests from the VS test console (vstest.console.exe). I get the error:
No suitable test runtime provider found for this run.

Steps to reproduce
- Create new unit test project: Add new project > Windows Universal > Unit Test App (Universal Windows)
- Click run all from Test Explorer. Test is found and executes successfully.
- Run from command line:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow
λ vstest.console.exe "[SolutionRoot]\UnitTestProject\bin\x86\Debug\UnitTestProject1.exe"
I also tried different versions of UWP and it seems to make no difference.
My OS is Fall Creator's Update. I have UWP 16299 installed.
Also tried with:
--TestAdapterPath:[SolutionRoot]\UnitTestProject1\bin\x86\Debug
Either way, I get the error:
No suitable test runtime provider found for this run.
Confirmed that Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll exists in the output directory.
Expected behavior
Tests are run.
Actual behavior
Error: No suitable test runtime provider found for this run.
Diagnostic logs
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.408, 559803623423, vstest.console.exe, TestPluginCache: Discovering the extensions using extension path.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.534, 559804031982, vstest.console.exe, TestPluginCache: Discovered the extensions using extension path ''.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.536, 559804037001, vstest.console.exe, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.536, 559804037533, vstest.console.exe, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.536, 559804037879, vstest.console.exe, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.536, 559804038232, vstest.console.exe, TestPluginCache: Loggers are ''.
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.573, 559804165664, vstest.console.exe, RunTestsArgumentProcessor:Execute: Test run is starting.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.573, 559804166322, vstest.console.exe, RunTestsArgumentProcessor:Execute: Queuing Test run.
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.575, 559804174493, vstest.console.exe, TestRequestManager.RunTests: run tests started.
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.668, 559804498596, vstest.console.exe, AssemblyMetadataProvider.GetFrameWork: Determined framework:'.NETCore,Version=v5.0' for source: 'C:\Users\jsiemens.LATITUDEGEO\Source\Repos\UnitTestProject1\UnitTestProject1\bin\x86\Debug\UnitTestProject1.exe'
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.668, 559804499564, vstest.console.exe, Determined framework for all sources: .NETCore,Version=v5.0
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.671, 559804508255, vstest.console.exe, AssemblyMetadataProvider.GetArchitecture: Determined architecture:X86 info for assembly: C:\Users\jsiemens.LATITUDEGEO\Source\Repos\UnitTestProject1\UnitTestProject1\bin\x86\Debug\UnitTestProject1.exe
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.672, 559804514554, vstest.console.exe, Determined platform for all sources: X86
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.677, 559804532175, vstest.console.exe, Compatible sources list :
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.677, 559804532897, vstest.console.exe, C:\Users\jsiemens.LATITUDEGEO\Source\Repos\UnitTestProject1\UnitTestProject1\bin\x86\Debug\UnitTestProject1.exe
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.680, 559804543157, vstest.console.exe, InferRunSettingsHelper.IsTestSettingsEnabled: Unable to navigate to RunSettings/MSTest. Current node: RunSettings
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.701, 559804617260, vstest.console.exe, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DefaultTestHostManager
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.702, 559804620413, vstest.console.exe, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.703, 559804622526, vstest.console.exe, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.UwpTestHostRuntimeProvider.UwpTestHostManager
TpTrace Error: 0 : 20120, 1, 2018/03/14, 12:54:04.704, 559804625740, vstest.console.exe, TestPlatform.CreateTestRunRequest: No suitable testHostProvider found for runsettings :
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\TestResults
X86
.NETCore,Version=v5.0
False
False
TpTrace Error: 0 : 20120, 1, 2018/03/14, 12:54:04.711, 559804649929, vstest.console.exe, TestRequestManager.RunTests: failed to run tests: Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: No suitable test runtime provider found for this run.
at Microsoft.VisualStudio.TestPlatform.Client.TestPlatform.ThrowExceptionIfTestHostManagerIsNull(ITestRuntimeProvider testHostManager, String settingXml)
at Microsoft.VisualStudio.TestPlatform.Client.TestPlatform.CreateTestRunRequest(IRequestData requestData, TestRunCriteria testRunCriteria)
at Microsoft.VisualStudio.TestPlatform.CommandLine.TestPlatformHelpers.TestRequestManager.RunTests(IRequestData requestData, TestRunCriteria testRunCriteria, ITestRunEventsRegistrar testRunEventsRegistrar)
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.715, 559804664656, vstest.console.exe, TestRequestManager.RunTests: run tests completed, sucessful: False.
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.715, 559804666186, vstest.console.exe, RunTestsArgumentProcessor:Execute: Test run is completed.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.715, 559804666542, vstest.console.exe, Executor.Execute: Exiting with exit code of 1
Environment
Microsoft (R) Test Execution Command Line Tool Version 15.6.1
Windows 10, Fall Creator's Update
Description
I am unable to run UWP tests from the VS test console (vstest.console.exe). I get the error:
No suitable test runtime provider found for this run.
Steps to reproduce
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow
λ vstest.console.exe "[SolutionRoot]\UnitTestProject\bin\x86\Debug\UnitTestProject1.exe"
I also tried different versions of UWP and it seems to make no difference.
My OS is Fall Creator's Update. I have UWP 16299 installed.
Also tried with:
--TestAdapterPath:[SolutionRoot]\UnitTestProject1\bin\x86\Debug
Either way, I get the error:
No suitable test runtime provider found for this run.
Confirmed that Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll exists in the output directory.
Expected behavior
Tests are run.
Actual behavior
Error: No suitable test runtime provider found for this run.
Diagnostic logs
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.408, 559803623423, vstest.console.exe, TestPluginCache: Discovering the extensions using extension path.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.534, 559804031982, vstest.console.exe, TestPluginCache: Discovered the extensions using extension path ''.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.536, 559804037001, vstest.console.exe, TestPluginCache: Discoverers are ''.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.536, 559804037533, vstest.console.exe, TestPluginCache: Executors are ''.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.536, 559804037879, vstest.console.exe, TestPluginCache: Setting providers are ''.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.536, 559804038232, vstest.console.exe, TestPluginCache: Loggers are ''.
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.573, 559804165664, vstest.console.exe, RunTestsArgumentProcessor:Execute: Test run is starting.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.573, 559804166322, vstest.console.exe, RunTestsArgumentProcessor:Execute: Queuing Test run.
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.575, 559804174493, vstest.console.exe, TestRequestManager.RunTests: run tests started.
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.668, 559804498596, vstest.console.exe, AssemblyMetadataProvider.GetFrameWork: Determined framework:'.NETCore,Version=v5.0' for source: 'C:\Users\jsiemens.LATITUDEGEO\Source\Repos\UnitTestProject1\UnitTestProject1\bin\x86\Debug\UnitTestProject1.exe'
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.668, 559804499564, vstest.console.exe, Determined framework for all sources: .NETCore,Version=v5.0
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.671, 559804508255, vstest.console.exe, AssemblyMetadataProvider.GetArchitecture: Determined architecture:X86 info for assembly: C:\Users\jsiemens.LATITUDEGEO\Source\Repos\UnitTestProject1\UnitTestProject1\bin\x86\Debug\UnitTestProject1.exe
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.672, 559804514554, vstest.console.exe, Determined platform for all sources: X86
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.677, 559804532175, vstest.console.exe, Compatible sources list :
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.677, 559804532897, vstest.console.exe, C:\Users\jsiemens.LATITUDEGEO\Source\Repos\UnitTestProject1\UnitTestProject1\bin\x86\Debug\UnitTestProject1.exe
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.680, 559804543157, vstest.console.exe, InferRunSettingsHelper.IsTestSettingsEnabled: Unable to navigate to RunSettings/MSTest. Current node: RunSettings
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.701, 559804617260, vstest.console.exe, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DefaultTestHostManager
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.702, 559804620413, vstest.console.exe, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.703, 559804622526, vstest.console.exe, TestPluginManager.CreateTestExtension: Attempting to load test extension: Microsoft.VisualStudio.UwpTestHostRuntimeProvider.UwpTestHostManager
TpTrace Error: 0 : 20120, 1, 2018/03/14, 12:54:04.704, 559804625740, vstest.console.exe, TestPlatform.CreateTestRunRequest: No suitable testHostProvider found for runsettings :
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\TestResults
X86
.NETCore,Version=v5.0
False
False
TpTrace Error: 0 : 20120, 1, 2018/03/14, 12:54:04.711, 559804649929, vstest.console.exe, TestRequestManager.RunTests: failed to run tests: Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: No suitable test runtime provider found for this run.
at Microsoft.VisualStudio.TestPlatform.Client.TestPlatform.ThrowExceptionIfTestHostManagerIsNull(ITestRuntimeProvider testHostManager, String settingXml)
at Microsoft.VisualStudio.TestPlatform.Client.TestPlatform.CreateTestRunRequest(IRequestData requestData, TestRunCriteria testRunCriteria)
at Microsoft.VisualStudio.TestPlatform.CommandLine.TestPlatformHelpers.TestRequestManager.RunTests(IRequestData requestData, TestRunCriteria testRunCriteria, ITestRunEventsRegistrar testRunEventsRegistrar)
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.715, 559804664656, vstest.console.exe, TestRequestManager.RunTests: run tests completed, sucessful: False.
TpTrace Information: 0 : 20120, 1, 2018/03/14, 12:54:04.715, 559804666186, vstest.console.exe, RunTestsArgumentProcessor:Execute: Test run is completed.
TpTrace Verbose: 0 : 20120, 1, 2018/03/14, 12:54:04.715, 559804666542, vstest.console.exe, Executor.Execute: Exiting with exit code of 1
Environment
Microsoft (R) Test Execution Command Line Tool Version 15.6.1
Windows 10, Fall Creator's Update