我正在使用NCover 3.0 .Want将结果集成到CC.Net .Everything中,运行良好,但CC.Net after中显示的报告没有那么详细。我希望能够显示未覆盖的类,方法,可能还有源代码。这就是我在NAnt构建脚本上所做的工作
<ncover
program="${NCoverDir}\NCover.Console.exe"
testRunnerExe="nunit-console.exe"
testRunnerArgs="..\..\Vault\AppServices\VaultApp.sln /config:Release /noshadow"
coverageFile="coverage.xml"
appendTrendTo="coverage.trend" />
<ncoverreporting
program="${NCoverDir}\NCover.Reporting.exe"
projectName="TEST"
sortBy="Name"
maxTopUncoveredToReport="20"
hide="HideFullyCovered"
coverageTrendPath="coverage.trend"
outputPath="Ncovercoverage.xml" >
<coverageDataPaths>
<include name="coverage.xml" />
</coverageDataPaths>
<reports>
<report format="Xml" reportType="SymbolModule" />
</reports>
</ncoverreporting>我怀疑报告格式仅限于符号模块。如何才能获得HTML格式的全面覆盖报告。
发布于 2011-04-08 21:46:29
由于CC.NET使用的是可扩展标记语言报告,而不是超文本标记语言报告,因此您必须像现在在构建脚本中那样生成超文本标记语言,然后从then仪表板提供指向它的链接。来自NCover的cc.net插件仅适用于单页报告xmls。你不能深入到源代码等等。制作一个HTML报告并从你的仪表板链接到它是可行的。
https://stackoverflow.com/questions/5590825
复制相似问题