I'm trying to integrate NCover into my CC.net build. I followed an article I found here http://csut017.wordpress.com/2009/05/29/improved-ncover-integration/ that I pretty much followed verbatim except that we use xUnit instead of nUnit for our unit tests. The problem is NCover never runs on the build server with this configuration and I was wondering if anyone else had some experience with this and could give me some advice.
Below is the pertinent parts of my ccnet.config file. The <msbuild>
portion of the config is running our unit tests which have been开发者_开发百科 configured right in the proj files.
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe</executable>
<workingDirectory>c:\projects\win_wip\src\Core.Tests</workingDirectory>
<projectFile>Core.Tests.csproj</projectFile>
<buildArgs>/noconsolelogger /p:configuration=debug</buildArgs>
<targets>Test</targets>
<timeout>900</timeout>
<logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
<ncoverProfile>
<executable>c:\program files\ncover\ncover.console.exe</executable>
<program>C:\Projects\win_wip\lib\xunit-1.6.1\xunit.console.clr4.x86.exe</program>
<testProject>DomainModel.Tests.dll</testProject>
<workingDir>c:\projects\win_wip\src\domainmodel.tests\bin\debug</workingDir>
<includedAssemblies>domainmodel.*.dll</includedAssemblies>
</ncoverProfile>
<ncoverReport>
<executable>C:\Program Files\NCover\NCover.Reporting.exe</executable>
<outputDir>ncover\reports</outputDir>
<reports>
<report>FullCoverageReport</report>
</reports>
<sortBy>CoveragePercentageDescending</sortBy>
</ncoverReport>
Have you tried the documentation at http://docs.ncover.com/how-to/continuous-integration/cruisecontrol-net/?
精彩评论