Cruisecontrol测试工具配置总结
来源:互联网 发布:射频美容 知乎 编辑:程序博客网 时间:2024/06/05 19:45
<!--@page { margin: 2cm }P { margin-bottom: 0.21cm }-->
Cruisecontrol测试工具配置总结
以Checkstyle为例
一.配置maven2项目
在maven2项目中添加Checkstyle插件
1.在build下插入Checkstyle插件代码
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<enableRulesSummary>false</enableRulesSummary>
</configuration>
</plugin>
</plugins>
</build>
2.在reporting下插入Checkstyle插件代码以生成测试结果
<reporting>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
</reporting>
二.配置cruisecontrol的config.xml文件
<loglogdir="logs/${project.name}">
<mergedir="projects/${project.name}/target/site" />
<merge dir="projects/${project.name}/target" />
<mergefile="projects/${project.name}/target/checkstyle-result.xml"/>
<merge file="projects/${project.name}/target/pmd.xml"/>
<merge file="projects/${project.name}/target/findbugsXml.xml"/>
<mergefile="projects/${project.name}/target/jdepend-report.xml"/>
<mergefile="projects/${project.name}/target/javancss-raw-report.xml"/>
</log>
备注:通过mvnsite命令后会在target目录下会生成checkstyle- result.xml的报告,我们需要通过merge来合并项目编译脚本中产生的结果。 Config.xml中其它配置可参考网上其它文章。
三.配置cruisecontrol的/webapps/cruisecontrol目录下文件
在main.jsp中添加代码
<cruisecontrol:tabname="checkstyle" label="CheckStyle">
<%@ includefile="checkstyle.jsp" %>
</cruisecontrol:tab>
即可在tab中显示checkstyle这一项
cruisecontrol-bin-2.8.2.zip中默认已经有了checkstyle.jsp文件
以及checkstyle.xsl,因此不需要额外添加。
让jdepend等没有自带,应此需要到网上,或者自己写/webapps/cruisecontrol目录下的jsp文件,和/webapps/cruisecontrol/xsl下的xsl文件。
参考网站:http://confluence.public.thoughtworks.org/display/CC/IntegratingWithOtherTools
- Cruisecontrol测试工具配置总结
- cruiseControl.net 配置总结
- (ZT)CruiseControl.NET配置总结
- cruisecontrol + svn + maven2 配置总结
- 持续继承工具CruiseControl.net 配置攻略。
- 配置CruiseControl.Net的问题总结
- cruisecontrol 配置
- 持续集成CI工具CruiseControl.NET的配置
- 持续集成工具CruiseControl
- 持续集成工具CruiseControl
- CruiseControl配置方法
- CruiseControl基础配置
- CruiseControl服务器安装配置
- CruiseControl配置详解
- CruiseControl 配置简述
- 持续集成工具CruiseControl续
- 敏捷持续集成工具CruiseControl
- CruiseControl日构建简单配置
- 让你的孩子拥有香港户口,享受香港的福利待遇……
- 双线性内插值算法用于放大
- 一个简单方法完成C#时间间隔的计算
- 协议
- C# StreamReader 和 StreamWriter 读取和写入汉字出现乱码的解决方法。
- Cruisecontrol测试工具配置总结
- 显卡加速网页渲染
- VS2005快捷键大全
- 1.2 细说软件质量属性
- C#操作EXCEL
- JAVA中使用Schema校验XML
- 实现MVC模式的CRUD实例(一般的教材上看不到)
- 吃一个苹果
- INFORMATICA8.6+Oracle