需要帮助将 NCover 3.4 与 xUnit 1.6.1 集成到 CruiseControl.Net 1.5 中
我正在尝试将 NCover 集成到我的 CC.net 版本中。我关注了在这里找到的一篇文章 http://csut017.wordpress.com /2009/05/29/improved-ncover-integration/ 我几乎逐字遵循,除了我们使用 xUnit 而不是 nUnit 进行单元测试。问题是 Nover 永远不会在具有此配置的构建服务器上运行,我想知道是否其他人有这方面的经验并可以给我一些建议。
以下是我的 ccnet.config 文件的相关部分。配置的
部分正在运行已在 proj 文件中正确配置的单元测试。
<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>
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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过 http://docs.ncover.com/ 上的文档如何/持续集成/cruisecontrol-net/?
Have you tried the documentation at http://docs.ncover.com/how-to/continuous-integration/cruisecontrol-net/?