Ncover 与 CC.Net 集成
我正在使用 NCover 3.0 。想要将结果集成到 CC.Net 中。一切正常,但 CC.Net 之后显示的报告不是那么详细。我希望能够显示未发现的类、方法,可能还有源代码。 这是我在 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 格式的完整覆盖率报告。
I'm using NCover 3.0 .Want to integrate the results into CC.Net .Everything works fine, but the report shown in CC.Net after is not that detailed. I would like to be able to display the uncovered classes, methods and probably the source too.
This is what I have done on the NAnt build script
<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>
I suspect the report format is limited to Symbol module. How can I get a full coverage report as we get in HTML .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于 CC.NET 使用 XML 报告,而不是 HTML 报告,因此您必须像现在在构建脚本中一样生成 HTML,然后从 Web 仪表板提供指向该报告的链接。 NCover 的 cc.net 插件仅适用于单页报告 xml。您无法深入研究源代码等。制作 HTML 报告并从仪表板链接到该报告是正确的方法。
Since CC.NET uses an XML report, not an HTML report, you'd have to generate the HTML like you do now in your build script and then provide a link to it from your webdashboard. The cc.net plugin from NCover only works for single-page report xmls. You can't drill into source code, and etc. Making an HTML report and linking to it from your dashboard is the way to go.