测试未在新生成的单元测试通用应用程序(VS 2015)中运行 [英] Tests aren't running in a newly generated Unit Test Universal App (VS 2015)

查看:106
本文介绍了测试未在新生成的单元测试通用应用程序(VS 2015)中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用内置的模板项目"Unit Test Universal App"运行任何单元测试.

I am unable to run any unit tests using the built in template project "Unit Test Universal App".

我不断收到此错误消息:

I keep getting this error message :

无法初始化客户端代理:无法连接到测试进程.

我正在使用Windows 10和VS 2015 Ent

I am on Windows 10 and VS 2015 Ent

我尝试以管理员身份运行VS,但仍然遇到相同的问题.

I have tried running VS as an admin I still see the same problem.

推荐答案

您好,Anargyros Tomaras,

Hi Anargyros Tomaras,

如果在其他VS机器上运行单元测试,结果如何?

If you run the unit test in other VS machine, how about the result?

>> 无法初始化客户端代理:无法连接到测试进程.

您的测试项目的目标平台是什么,如以下屏幕截图所示?

What is your test project's target platform like the following screen shot?

也许您可以更改平台target = ARM/X64,然后再次进行测试.

Maybe you could change the platform target=ARM/X64, test it again.

我遇到了这个问题,即使与VS2013有关,此问题也与第三方流程有关:

I met this issue before which was related to the third party process even if it was about the VS2013:

https ://connect.microsoft.com/VisualStudio/feedback/details/807771/visual-studio-2013-test-explorer-only-works-if-run-as-administrator

也请在您身边进行测试,例如,关闭其他第三方工具/过程,然后再次进行测试.

Please also test it in your side, for example, close other third party tools/processes, test it again.

如果仍然没有帮助,请在输出窗口中向我们分享详细的输出消息.

If still no help, please share us the detailed output message in the output window.

最好的问候,

Jack


这篇关于测试未在新生成的单元测试通用应用程序(VS 2015)中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆