.NET 4 上的 Gallio、MBunit 和 WaTiN
我目前正在将 ASP.NET 应用程序升级到 .NET 4 Framework。代码编译并且我们的单元测试似乎在新的 .NET Framework 下运行,没有太多问题。然而,我们的 WaTiN 测试根本拒绝启动。
我已经安装了 Gallio 3.3 和 3.2 套件,但运行测试均未成功。 3.3 在尝试发现测试时会崩溃,而 3.2 在尝试执行测试时会挂起。两个版本的输出有所不同,但底线是:两者都不起作用。
查看 teamcity 日志时,我收到以下错误输出: http://pastebin.com/GNkQFfNr
这是Watin 和 Gallio 套件的最新版本。 有谁能够让这个组合在.NET4下正确运行吗?
- Gallio:3.3
- Watin:2.1
- .NET:4.0
- Windows XP 32 位
- Buildagent:通过 nant 脚本调用
I'm currently in the middle of upgrading out ASP.NET Application to .NET 4 Framework. The code compiles and our unit tests seem to run under the new .NET Framework without much problems. Our WaTiN tests however simply refuse to even start.
I've installed the Gallio 3.3 and 3.2 suites and neither succeeds in running the tests. 3.3 simply crashes when trying to discover the tests and 3.2 hangs when trying to execute the test. The output differs between the two versions, but bottomline is : neither work.
When looking at teamcity logs, I receive the following error output: http://pastebin.com/GNkQFfNr
This is with the latest version of both Watin and Gallio suite.
Has anyone been able to get this combination properly running under .NET4?
- Gallio : 3.3
- Watin : 2.1
- .NET : 4.0
- Buildagent : Windows XP 32bit
- invoked through nant scripts
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑
由于一些人询问详细信息,编辑了 awnser:
我们安装了 Gallio 的最新版本。首先,我们尝试从源代码构建它,但这似乎因原因而失败,因此我们使用安装程序来安装最新版本。我们还下载了免安装包并将其放入我们的 SVN 中。
然后,我们从 WaTiN 下载源代码,并根据 .NET 4 Framework 自行编译。 Awe 还在我们的 SVN 中包含了源代码和二进制文件,因此构建代理可以访问它们。
最后,我们从 Gallio 中删除了 NCover,因为该版本不兼容 .NET 4。我们用 PartCover 替换了它,并更新了 nant 脚本以调用 PartCover 而不是 NCover。
EDIT
Editing the awnser as some people asked for the details:
We installed the latest version from Gallio. First we tried to build it from source, but this seemed to be failing for reason, so we took the installer to get the latest version installed. We also downloaded the no-install package and placed that inside our SVN.
We then downloaded the source from WaTiN and compiled this ourselves against the .NET 4 Framework. Awe also included the source and the binaries in our SVN so the build agents have access to this.
Finally we stripped out the NCover from Gallio, as this version was not .NET 4 Compatible. We replaced this with PartCover and updated the nant scripts to invoke PartCover instead of NCover.