[UWP]上次测试运行未运行 [英] [UWP] Last Test Run Not Run
问题描述
我正在使用Visual Studio 2017(版本16.6.4)来开发我的UWP应用程序。我使用Unit Test App模板创建了一堆单元测试。我正在使用Visual Studio附带的测试框架([TestClass],[TestMethod]等)。
测试一直运行到今天。没有明显原因,测试框架开始崩溃并出现以下错误:
"上次测试运行未运行"
和"输出"窗口显示以下错误:
[2018-03-29 9:43:57 AM Informational] ------加载播放列表开始------
[2018-03-29 9:43:57 AM Informational] ==========加载播放列表已完成(0:00:00.0156275)==========
[2018-03-29 9:44:14 AM Informational] ------发现测试开始------
[2018-03-29 9:44:17 AM错误]微软.VisualStudio.TestPlatform.ObjectModel.TestPlatformException:无法初始化客户端代理:无法连接到测试进程。
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources,CancellationToken cancellationToken)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria,ITestDiscoveryEventsHandler2 eventHandler)
[2018-03-29 9:44:18 AM Informational] ==========发现测试结束:0找到(0:00:04.4268627)======= ===
[2018-03-29 9:44:18 AM信息] ------运行测试开始------
[2018-03-29 9:44: 20 AM错误] Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException:无法初始化客户端代理:无法连接到测试进程。
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources,CancellationToken cancellationToken)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.StartTestRun(TestRunCriteria testRunCriteria,ITestRunEventsHandler eventHandler)
[2018-03-29 9:44:20 AM错误] Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException:无法初始化客户端代理:无法连接到测试进程。
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources,CancellationToken cancellationToken)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.StartTestRun(TestRunCriteria testRunCriteria,ITestRunEventsHandler eventHandler)
[2018-03-29 9:44:20 AM信息] ==========运行测试完成:0运行(0:00:01.6749018)======= ===
这个错误可能是什么原因以及如何解决?
谢谢,
Leszek
Wiki: wbswiki.com
网站: www.wisenheimerbrainstorm.com
问题与单元测试更相关,我会帮你把线程移到
单元测试论坛。你可以在那里得到更专业的支持。
感谢您的耐心等待。
祝你好运,
罗伊
Hi,
I'm using Visual Studio 2017 (version 16.6.4) to develop my UWP app. I've created a bunch of unit tests using the Unit Test App template. I'm using the testing framework that comes with Visual Studio ([TestClass], [TestMethod] etc.).
The tests have been running fine until today. With no apparent reason, the testing framework started to crash with the following error:
"Last Test Run Not Run"
and the Output window shows the following error:
[2018-03-29 9:43:57 AM Informational] ------ Load Playlist started ------ [2018-03-29 9:43:57 AM Informational] ========== Load Playlist finished (0:00:00.0156275) ========== [2018-03-29 9:44:14 AM Informational] ------ Discover test started ------ [2018-03-29 9:44:17 AM Error] Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Failed to initialize client proxy: could not connect to test process. at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources, CancellationToken cancellationToken) at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler2 eventHandler) [2018-03-29 9:44:18 AM Informational] ========== Discover test finished: 0 found (0:00:04.4268627) ========== [2018-03-29 9:44:18 AM Informational] ------ Run test started ------ [2018-03-29 9:44:20 AM Error] Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Failed to initialize client proxy: could not connect to test process. at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources, CancellationToken cancellationToken) at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.StartTestRun(TestRunCriteria testRunCriteria, ITestRunEventsHandler eventHandler) [2018-03-29 9:44:20 AM Error] Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Failed to initialize client proxy: could not connect to test process. at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources, CancellationToken cancellationToken) at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.StartTestRun(TestRunCriteria testRunCriteria, ITestRunEventsHandler eventHandler) [2018-03-29 9:44:20 AM Informational] ========== Run test finished: 0 run (0:00:01.6749018) ==========
What could be a reason for this error and how I can fix it?
Thanks,
Leszek
Wiki: wbswiki.com
Website: www.wisenheimerbrainstorm.com
Hi,
The problem is more related to Unit Test, I'll help you move the thread to the Unit Test Forum. You could get more professional support there.
Thank you for your patience.
Best regards,
Roy
这篇关于[UWP]上次测试运行未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!