MSTest Visual Studio 2012和AppDomain [英] MSTest Visual Studio 2012 and AppDomain

查看:145
本文介绍了MSTest Visual Studio 2012和AppDomain的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到MSTest在单独的AppDomain中启动程序集测试. 我们是否可以配置MSTest以避免为每个测试程序集创建新的AppDomain?

I have noticed that the MSTest is launching assemblies tests in separate AppDomain. Are we able to configure MSTest to avoid creating new AppDomain for each test assembly?

推荐答案

您可以使用/noisolation运行它-在MSTest.exe进程中运行测试.此选择可以提高测试运行速度,但会增加MSTest.exe进程的风险."

You can run it with /noisolation - "Run tests within the MSTest.exe process. This choice improves test run speed but increases risk to the MSTest.exe process."

http://msdn.microsoft.com/en-us/library/ms182489.aspx

这篇关于MSTest Visual Studio 2012和AppDomain的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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