【发布时间】:2010-05-06 15:52:45
【问题描述】:
钻机:win7 64bit、vs2010、mvc v2、TestDriven.Net 3.0、Reshaper 5.0、MSpec 0.3
我最近开始了一个新项目,想使用 mspec。
(1) 将 Machine.Specifications.ReSharperRunner.5.0.dll 和 Machine.Specifications.dll 复制到 JetBrains\ReSharper\5.0\Bin\Plugins\Machine.Specifications (2) 将 Machine.Specifications.TDNetRunner.dll 复制到 TestDriven。 NET 3\Machine.Specifications
当我尝试运行测试时,我收到此错误:System.IO.FileNotFoundException: 无法加载文件或程序集'Machine.Specifications
我不知道这个错误是从哪里来的。
vs2010 菜单 -> ReSharper ->Plugins 显示 MSpec 插件。 vs2010 菜单 -> ReSharper -> 选项 -> 工具 -> 单元测试也显示了 MSpec 单元测试提供程序,但是当我单击它时它没有显示任何详细信息,就像 MSTest 和 nUnit 一样。
我发现了这个:http://marcinobel.com/index.php/mspec-bdd-installer/ 这不起作用。我也试过这个:http://eduncan911.com/blog/registering-mspec-runners-for-testdriven-net-on-windows-x64.aspx 这也没有用。现在我担心我搞砸了我的注册表。
有什么指导吗?
完全错误:
测试“F:Tests.OTBRadio.Tasks.AlbumTasksSpecs.when_the_album_tasks_are_asked_to_get_all.context”失败:无法加载文件或程序集“Machine.Specifications,版本=0.3.0.0,文化=中性,PublicKeyToken=null”或其之一依赖关系。该系统找不到指定的文件。 System.IO.FileNotFoundException:无法加载文件或程序集“Machine.Specifications,版本=0.3.0.0,文化=中性,PublicKeyToken=null”或其依赖项之一。该系统找不到指定的文件。 文件名:'Machine.Specifications,Version=0.3.0.0,Culture=neutral,PublicKeyToken=null' 在 Machine.Specifications.TDNetRunner.SpecificationRunner.RunMember(ITestListener testListener,Assembly 程序集,MemberInfo 成员) 在 TestDriven.TestRunner.AdaptorTestRunner.Run(ITestListener testListener,ITraceListener traceListener,字符串 assemblyPath,字符串 testPath) 在 TestDriven.TestRunner.ThreadTestRunner.Runner.Run()
【问题讨论】:
标签: unit-testing resharper testdriven.net mspec