原来我使用的版本是:TestDriven.NET-1.0.915d.zip,参见说明TestFixture Test testdriven 测试驱动 ,结果今天使用的时候发现如下情况,直接运行OK,但是调试模式不行。最后发现需要升级到TestDriven.NET-1.1.1048d ,原因就是因为安装了或者安装过又卸载了VS.NET 2005或者 EXPRESS版本。我的情形的确如此。 ------ Test started: Assembly: SGIPSP.exe ------ 直接 Run Test(s) 1 succeeded, 0 failed, 0 skipped, took 0.02 seconds. ---------------------- Done ---------------------- ------ Test started: Assembly: SGIPSP.exe ------DEBUG Test With... Debugger ---------------------- Done ---------------------- 搜索了一下,发现这个 http://weblogs.asp.net/nunitaddin/archive/2005/04/30/405148.aspx 'Test With... Debugger' - Fixed! Test Driven .NET Zero Friction Unit Testing for Visual Studio .NET 修正VS.NET无阻力单元测试www.shengfang.org 如果VS.NET BETA2任一一个版本的软件安装之后,包括VS2005或者体验版本, TD(调试模式下的单元测试)不工作,这个问题困扰了我一段时间。它造成两个完全不同的结果。一个是如果VS.NET2003和VS.NET2005并存,它将中断VS.NET2003的调试。www.shengfang.org另一个看上去好像是导致VS2005调试自己,如果VS2005找不到PDB文件,软件将崩溃。我做了一个新的安装文件解决以上两个问题。 The other day I mentioned a way to get debugging working again in VS2003 (by adding a 'bindingRedirect' to Visual Studio's 'devenv.exe.config' file). Unfortunately this has side effects of its own and prevents the command bar buttons from being installed on a fresh install of TestDriven.NET. Everything worked just fine assuming TD.NET had already been installed. If you made this change, I would recommend rolling it back and installing the new version. 有一天我提及让调试模式正常的方法(增加一个选项到VS CFG文件中),不幸的是它对它自己起到了负面影响,如果是新安装的TN,它将阻止工具条按钮初始化? www.shengfang.org除非是覆盖以前老版本TD.NET安装,它将工作良好。如果你更新了这个版本,我建议你卸载并安装最新版本。 There are a couple of other changes worth mentioning. I've updated the 'QualityTools' test runner so that is works with the latest VSTS 'Test Project's. I've also improved the plug-in model for test runners. You'll need this version if you want to use the version of MbUnit on Tigris with TD.NET. Everything is there to build your own compatible MbUnit installer (using MSBuild + Wix). 在此还有一些修改值得提起,我更新了品质空间测试运行,现在它可以和最新的 VSTS 测试工程一齐运行。我还改良了测试信使插件模式,如果你想用最新版本的MBUNIT和TD.NET协同工作,你应该升级到新版本。建立你自己的兼容的MBUNIT安装包?www.shengfang.org You can find the new build here. Please let me know how you get on so I know when to make a higher profile announcement. 你可以在此找到最新安装包,请告知我你的发展,让我知道何时发布更高层面的公告?www.shengfang.org 字体:大 中 小 |
![]() | 永久地址 http://www.shengfang.org/blog/p/TestDrivenNET111048d.php |
![]() | 引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1120193580 |
2005年7月1日12:53星期五 [Dev开发]





