Visual Studio 2012 可以并行运行单元测试吗? [英] Can Visual Studio 2012 run unit tests in parallel?

查看:23
本文介绍了Visual Studio 2012 可以并行运行单元测试吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2012 是否可以并行运行单元测试?Visual Studio 2010 可以选择执行此操作:

Can Visual Studio 2012 run unit tests in parallel? Visual Studio 2010 has an option to do this:

http://blogs.msdn.com/b/vstsqualitytools/archive/2009/12/01/executing-unit-tests-in-parallel-on-a-multi-cpu-core-machine.aspx

...但我在 Visual Studio 2012 中找不到任何类似的东西.我尝试了参考文章中描述的过程,但即使加载相同的测试设置文件,我也无法并行运行测试.

...but I can't find anything similar in Visual Studio 2012. I tried the procedure described in the referenced article, but even loading the same test settings file I was unable to run tests in parallel.

推荐答案

没有.VS2012 单元测试框架目前无法并行运行测试.

No. VS2012 unit test framework currently does not run tests in parallel.

编辑:将 Dave 的部分评论移到答案中以便更好地参考.

Edit: Moving a part of the comments with Dave into the answer for better reference.

参见 此链接 关于如何使用 .testsettings 启用并行运行.一旦你在你的 .testsettings 文件中配置了它,你就可以将它设置为 VS 中的活动设置文件,这将强制在旧版 mstest 框架中执行,该框架提供此功能.

See this link on how to enable parallel runs using the .testsettings. Once you have this configured in your .testsettings file you can then set that as the active settings file in VS and this which will force the execution in the legacy mstest framework, where this feature is available.

这篇关于Visual Studio 2012 可以并行运行单元测试吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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