Gallio 与 NANT 和 CruiseControl.NET 集成
在我们的构建过程中,我们当前使用 MBUnit 2.x 测试,从 NAnt 任务调用,从 CruiseControl.NET 调用。我已在本地升级到 Gallio 和 MBUnit 3.x,并且能够从 VS2008 运行测试。我在升级构建过程时遇到问题。看起来我们有两个选择,要么从 CruiseControl.net 运行测试,要么从 NAnt 运行测试。基于此,我有两个问题:
在所有其他条件相同的情况下,应该在哪里运行这些测试,NAnt 还是 CruiseControl.net,还是真的很重要?
如果您喜欢做这类事情在 NAnt 中,您有任何关于如何实现它的文档或示例吗?我在 Gallio 安装的 Gallio\extra\CCNet 目录中找到了 CC.NET 解决方案的文档。
谢谢
In our build process we're currently using MBUnit 2.x tests, called from an NAnt task, called from CruiseControl.NET. I've uprgaded to Gallio and MBUnit 3.x locally and am able to run tests from VS2008. I'm having trouble getting our build process upgraded. It looks like we have two options, either run the tests from CruiseControl.net or from NAnt. Based on this, I have two questions:
With all other things being equal, where should these tests be run, NAnt or CruiseControl.net, or does it really matter at all?
If you like doing this sort of thing in NAnt, do you have any documentation or examples of how to implement it? I've found documentation for the CC.NET soution in my Gallio\extra\CCNet directory in the Gallio installation.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
作为使用 Gallio 构建的一部分来运行测试的选项与使用 MbUnit v2 时的选项类似。
我建议使用 Gallio.NAntTasks.dll 和 Gallio.MSBuildTasks.dll 中提供的任务从 NAnt 或 MSBuild 脚本运行测试。
但是,如果您想直接从 CCNet 配置运行测试,则可以添加 CCNet 任务来执行 Gallio.Echo.exe 程序。
以下是其他人在博客中介绍的有关 NAnt 任务的更多信息。一些细节在最近的版本中发生了变化,但它应该会让您走上正确的轨道。
http://testdrivendevelopment .wordpress.com/2008/12/01/use-nant-to-run-mbunit-tests-using-gallio/
Your options for running tests as part of your build with Gallio are similar to what they were with MbUnit v2.
I recommend running the tests from your NAnt or MSBuild scripts using the provided tasks in Gallio.NAntTasks.dll and Gallio.MSBuildTasks.dll.
However, if you want to run the tests directly from the CCNet configuration, then you can add a CCNet task to execute the Gallio.Echo.exe program.
Here's a bit more info on the NAnt task that someone else blogged about. Some of the details have changed in recent releases but it should get you on the right track.
http://testdrivendevelopment.wordpress.com/2008/12/01/use-nant-to-run-mbunit-tests-using-gallio/