简体   繁体   English

如何在不安装的情况下运行使用Microsoft Moles编写的单元测试?

[英]How to run unit tests written with Microsoft Moles without installing it?

Our team is working on writing unit tests for a big .Net project, using “Visual Studio 2010” IDE and “NUnit” (v. 2.5.9) unit-testing framework. 我们的团队正在使用“Visual Studio 2010”IDE和“NUnit”(v.2.5.9)单元测试框架为大型.Net项目编写单元测试。 Also we use “Microsoft Moles” type-isolating framework. 我们还使用“Microsoft Moles”类型隔离框架。 After we finished writing tests for specific module we have to build all the modules and run unit tests on different machine where the Moles is not installed. 在我们完成为特定模块编写测试之后,我们必须构建所有模块并在未安装Moles的不同机器上运行单元测试。

Is it possible to run unit tests written with moles without actually installing moles framework but only by copying and/or registering (in GAC or in System Registry) specific components? 是否可以在不实际安装moles框架的情况下运行使用moles编写的单元测试,但只能通过复制和/或注册(在GAC或System Registry中)特定组件? And if so, what are these components? 如果是这样,这些组件是什么?


For example, we have found out that it needs to register “Microsoft.ExtendedReflection.ClrMonitor.x86” in the Windows registry in order to run unit tests. 例如,我们发现它需要在Windows注册表中注册“Microsoft.ExtendedReflection.ClrMonitor.x86”才能运行单元测试。

I don't see how you can given the complexity of the setup. 我不知道如何给出设置的复杂性。 There 79 files going to 49 directories. 有79个文件进入49个目录。 It's a platform component, you just need to have it as a prereq just like having .NET. 它是一个平台组件,你只需将它作为一个先决条件就像拥有.NET一样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM