MSTest Visual Studio 2012和AppDomain

时间:2022-09-02 11:42:38

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?

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

1 个解决方案

#1


1  

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."

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

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

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

#1


1  

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."

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

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

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