Cruise Control .net: Using packages and showing NUnit results

此生再无相见时 提交于 2019-12-05 19:50:57
Benjamin Baumann

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>

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

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 )

Hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!