Cruise Control .net:使用软件包并显示NUnit结果 [英] Cruise Control .net: Using packages and showing NUnit results

查看:70
本文介绍了Cruise Control .net:使用软件包并显示NUnit结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经过一番困惑,我终于设法在我们的构建服务器上成功部署了Cruise Control .net实例。
它每隔几分钟轮询服务器一次,并且仅在检测到svn存储库中的更改时才进行构建。
为了构建和测试,我使用了MSBuild和NUnit的组合。 MSBuild删除所有先前生成的测试结果xml文件,构建项目并运行NUnit。
最后,我使用ccnet.config中的Publisher\Merge选项将测试结果生成的结果包含到当前的Cruise Control构建结果中。

After much confusion, I have finally managed to successfully deploy a instance of Cruise Control .net on our build server. It polls the server every few minutes and builds only if it detects changes in the svn repository. For building and testing, I am using a combination of MSBuild and NUnit. MSBuild deletes all the previously generated test result xml files, builds the projects and runs NUnit. Finally I include the results generated from the test results into the current Cruise Control build result using Publisher\Merge option in the ccnet.config

很棒但是,生成的日志庞大且难以浏览。我在 http:处查看巡航控制系统的实例。 //ccnetlive.thoughtworks.com/ccnet/server/CCNet%20Live/project/NetReflector/ViewProjectReport.aspx ,并且构建报告的一侧包含更多选项,例如NUnit结果等。

The results are pretty great. However the logs generated are enormous and hard to go thru. I was looking the the cruise control's own instance at http://ccnetlive.thoughtworks.com/ccnet/server/CCNet%20Live/project/NetReflector/ViewProjectReport.aspx and there build report has more options included on the side like NUnit results etc.

我尝试从CCnet管理仪表板安装多个软件包,但新安装的软件包均未出现在仪表板上。我猜想我要做的不只是安装这些修补程序之类的软件包和配置文件,而是我想不通。有人在这方面有经验吗?

I have tried to install multiple packages from the CCnet Administer Dashboard but none of the newly installed packages appear on the dashboard. I am guessing that I have to do more than just install these packages like tinker with the configuration files but I cannot figure out how. Does anyone have any experience in that regard?

推荐答案

最好的方法是直接从Cruise Control调用Nunit:

The best way is to call Nunit directly from your Cruise Control :

<tasks>
    <msbuild>
       <executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
       <workingDirectory>D:\Compil\src\net-3.5\MyProject\trunk</workingDirectory>
       <projectFile>MyProject.sln</projectFile>
       <buildArgs>/p:Cible="DEV"</buildArgs>
       <targets>Clean;Build</targets>
       <timeout>600</timeout>
       <logger>D:\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll</logger>
   </msbuild>
   <nunit>
       <path>C:\Program Files\NUnit 2.5.7\bin\net-2.0\nunit-console.exe</path>
        <assemblies>
            <assembly>D:\Compil\src\net-3.5\MyProject\trunk\Tester\Tester.exe</assembly>
        </assemblies>
   </nunit>
</tasks>

这样做无需手动合并文件或手动删除nunit结果文件。

Doing this you don't have to manually merge files nor to manually delete nunit results file.

最后,如果您的报告不适合您,请检查用于创建报告的xsl文件(请参阅巡航控制.Net未显示Nant构建错误

Finally if your report doesn't suit you, check the xsl files used to create it ( see Cruise Control .Net not showing Nant build errors )

希望这会有所帮助。

这篇关于Cruise Control .net:使用软件包并显示NUnit结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆