.NET开发
本类阅读TOP10
作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站
Martin Fowler的文章:Continuous Integration 中文翻译:持续集成
传统工具:VisualStudio.Net,VisualSourceSafe,Rational ClearCase
自动编译工具:NAnt,NAntContrib
回归测试工具:NUnit
代码检查工具:FxCop
持续集成工具:CruiseControl.Net
CruiseControl.Net监控远程版本控制系统的变化
变化发生时CruiseControl.Net调用编译工具进行编译(NAnt或VisualStudio.Net)
编译成功后调用NUnit进行回归测试
编译成功后调用FxCop进行代码检查
完毕后将编译结果、测试结果、代码检查结果发送至开发人员、主管经理,并发布至网站
图示:
所有这一切都是按照编制好的脚本自动进行的
目前我们使用的是ClearCase
主控软件为CruiseControl.Net,其脚本文件为ccnet.config
配置远程版本控制系统
- <sourcecontrol type="clearCase"> <viewPath>D:\cc_view\USE_TECH_DEPT\Platform\Nucleus\2产品开发\2实现\Nucleus1.0\Source</viewPath> <useLabel>false</useLabel> </sourcecontrol>
配置编译工具
- <build type="nant"> <executable>F:\software\Agile.Net\nant-0.85-nightly\bin\nant.exe</executable> <baseDirectory>F:\software\Agile.Net\nant-0.85-nightly\bin</baseDirectory> <buildFile>Y:\nucleus.build</buildFile> <logger>NAnt.Core.XmlLogger</logger> - <targetList> <target>build</target> <target>fxcop</target> </targetList> </build>
配置测试用例
- <tasks> - <nunit> <path>D:\Program Files\NUnit 2.2\bin\nunit-console.exe</path> - <assemblies> <assembly>Y:\NewPDObject\TestNewPDObject\bin\Debug\TestNewPDObject.exe</assembly> </assemblies> </nunit> </tasks>
<publishers> - <xmllogger> <logDir>..\web\log</logDir> - <mergeFiles> <file>Y:\nucleus.xml</file> </mergeFiles> </xmllogger> - <email from="[email protected]" mailhost="163.com" includeDetails="TRUE"> <projectUrl>http://ajaxchelsea/ccnetweb</projectUrl> - <users> <user name="BuildGuru" group="buildmaster" address="[email protected]" /> <user name="chelsea" group="developers" address="[email protected]" /> <user name="ajax" group="developers" address="[email protected]" /> </users> - <groups> <group name="developers" notification="always" /> <group name="buildmaster" notification="always" /> </groups> </email> </publishers>
- <target name="fxcop" depends="build"> <exec program="D:\Program Files\Microsoft FxCop 1.30\fxcopcmd.exe" commandline="/p:Y:\nucleus.fxcop /o:Y:\nucleus.xml" failonerror="false" /> </target>
相关软件: