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

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

问题描述

可并行的Visual Studio 2012运行单元测试? Visual Studio 2010中有一个选项可以做到这一点(见<一href="http://blogs.msdn.com/b/vstsqualitytools/archive/2009/12/01/executing-unit-tests-in-parallel-on-a-multi-cpu-core-machine.aspx">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类似。

Can Visual Studio 2012 run unit tests in parallel? Visual Studio 2010 has an option to do this (see http://blogs.msdn.com/b/vstsqualitytools/archive/2009/12/01/executing-unit-tests-in-parallel-on-a-multi-cpu-core-machine.aspx) but I can't find anything similar in Visual Studio 2012.

感谢。

推荐答案

没有。 VS2012单元测试框架目前并不并行运行测试。

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

修改:移动与戴维各种意见,答案的一部分,为更好的参考

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

请参阅<一href="http://blogs.msdn.com/b/vstsqualitytools/archive/2009/12/01/executing-unit-tests-in-parallel-on-a-multi-cpu-core-machine.aspx"相对=nofollow>如何使使用.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天全站免登陆