0

我正在使用 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 时,如何获得完整的覆盖率报告。

4

1 回答 1

0

由于 CC.NET 使用 XML 报告,而不是 HTML 报告,因此您必须像现在在构建脚本中那样生成 HTML,然后从您的 webdashboard 提供指向它的链接。NCover 的 cc.net 插件仅适用于单页报告 xml。您无法深入研究源代码等。制作 HTML 报告并从仪表板链接到它是可行的方法。

于 2011-04-08T13:46:28.923 回答