ccnet和单元测试
如果项目的单元测试失败,ccnet 是否可以在 ccnet 托盘和网站中说构建失败?
有人知道这方面的教程吗?
is it possible for ccnet to say that the build has failed in the ccnet tray and the web site if a unit test fails for the project?
Anyone know of a tutorial for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当然 !这就是持续集成的目标!
只需添加一个任务来在编译后运行单元测试。这在很大程度上取决于您使用的编程语言,但您可以考虑运行 EXE 进行单元测试。
总结一下,示例任务顺序:
您要求教程,我可以给您一个例子:
Of course ! And it is the goal for continuous integration !
Just add a task to run your unit test after compilation. It depends heavily on the programming language you use, but you can consider running the EXE for unit tests.
So to summarize, sample task order :
You ask for a tutorial, I can give you an example :
这是如何使用 NUnit 设置 CCNET 的好教程:
http://ilmatte.wordpress.com/2008/06 /01/cruisecontrolnet-tutorial-part-1/
持续集成可以做更多有趣的事情。例如,使用 StyleCop 检查代码风格,使用 FxCop 查找明显的错误,使用 NDepend 跟踪依赖关系,在临时服务器上自动部署应用程序以进行手动测试,通过UI执行验收测试,进行性能测试等
This is the good tutorial how to set up CCNET with NUnit:
http://ilmatte.wordpress.com/2008/06/01/cruisecontrolnet-tutorial-part-1/
Continuous integration allows to do even more interesting things. For example check code style with StyleCop, look for obvious bugs with FxCop, track dependencies with NDepend, automatically deploy application on staging server for manual testing, perform acceptance testing through UI, do performance testing etc